forked from IntersectMBO/ouroboros-consensus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
64 lines (64 loc) · 1.78 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
nixConfig = {
extra-substituters = [
"https://cache.iog.io"
];
extra-trusted-public-keys = [
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
];
allow-import-from-derivation = true;
};
inputs = {
nixpkgs.follows = "haskellNix/nixpkgs-unstable";
flake-utils.follows = "haskellNix/flake-utils";
haskellNix = {
url = "github:input-output-hk/haskell.nix";
inputs.hackage.follows = "hackageNix";
};
hackageNix = {
url = "github:input-output-hk/hackage.nix";
flake = false;
};
CHaP = {
url = "github:input-output-hk/cardano-haskell-packages?ref=repo";
flake = false;
};
iohkNix = {
url = "github:input-output-hk/iohk-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
tullia.url = "github:input-output-hk/tullia";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import inputs.nixpkgs {
inherit system;
inherit (inputs.haskellNix) config;
overlays = [
inputs.haskellNix.overlay
inputs.iohkNix.overlays.crypto
(import ./nix/tools.nix inputs)
(import ./nix/haskell.nix inputs)
(import ./nix/pdfs.nix)
];
};
inherit (pkgs) lib haskell-nix;
inherit (haskell-nix) haskellLib;
devShell = import ./nix/shell.nix pkgs;
in
{
devShells = {
default = devShell;
website = pkgs.mkShell {
packages = [ pkgs.nodejs pkgs.yarn ];
};
};
hydraJobs = import ./nix/ci.nix { inherit inputs pkgs devShell; };
legacyPackages = pkgs;
} // inputs.tullia.fromSimple system (import ./nix/tullia.nix)
);
}