Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
71 lines (61 loc) · 1.98 KB
/
Copy pathflake.nix
File metadata and controls
71 lines (61 loc) · 1.98 KB
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
65
66
67
68
69
70
71
{
inputs = {
self.submodules = true;
nix-haskell.url = ./deps/nix-haskell;
"style.hs".url = ./deps/style.hs;
nixpkgs.follows = "nix-haskell/nixpkgs";
haskell-nix.follows = "nix-haskell/haskell-nix";
flake-compat.follows = "nix-haskell/flake-compat";
};
outputs = inputs@{ self, ... }:
let sources = import ./inputs.nix { overrides = inputs; };
lib = import "${sources.nixpkgs}/lib";
eachSystem = lib.genAttrs lib.systems.flakeExposed;
inputsFor = system: import ./inputs.nix {
inherit system;
overrides = inputs;
};
projectFor = system: import ./default.nix {
inherit system;
inputs = inputsFor system;
};
in {
legacyPackages = eachSystem (system:
projectFor system // {
# Every driver and compiler patch is meant to work for, built
# both ways.
release = import ./release.nix {
inherit system;
inputs = inputsFor system;
};
}
);
packages = eachSystem (system:
let project = projectFor system;
in rec {
default = haskell-nix;
haskell-nix = project.haskell-nix.hsPkgs.patch.components.library;
nixpkgs = project.nixpkgs.packages.patch;
});
devShells = eachSystem (system:
let shells = import ./shell.nix {
inherit system;
inputs = inputsFor system;
};
in shells // { default = shells.haskell-nix; }
);
};
nixConfig = {
extra-substituters = [
"https://cache.nixos.org"
"https://nixcache.reflex-frp.org"
"https://cache.iog.io"
];
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" # reflex-frp
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
];
allow-import-from-derivation = "true";
};
}