-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
37 lines (29 loc) · 1.01 KB
/
default.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
let
sources = import ./nix/sources.nix;
nixos-22-11 = import sources."nixos-22.11" {};
inherit (nixos-22-11) haskell lib symlinkJoin;
inherit (lib) fold composeExtensions concatMap attrValues;
combineOverrides = old:
fold composeExtensions (old.overrides or (_: _: { }));
sourceOverrides = haskell.lib.packageSourceOverrides {
hash-addressed-cli = ./hash-addressed-cli;
};
depOverrides = new: old: {
gambler = new.callPackage ./nix/gambler.nix {};
hash-addressed = new.callPackage ./nix/hash-addressed.nix {};
quaalude = new.callPackage ./nix/quaalude.nix {};
};
ghc."9.2" = nixos-22-11.haskell.packages.ghc92.override (old: {
overrides = combineOverrides old [ sourceOverrides depOverrides ];
});
ghc."9.4" = nixos-22-11.haskell.packages.ghc94.override (old: {
overrides = combineOverrides old [ sourceOverrides depOverrides ];
});
in
symlinkJoin {
name = "hash-addressed-cli";
paths = concatMap (x: [x.hash-addressed-cli]) (attrValues ghc);
} // {
inherit ghc;
pkgs = nixos-22-11;
}