-
Notifications
You must be signed in to change notification settings - Fork 4
/
default.nix
35 lines (27 loc) · 933 Bytes
/
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
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 {
partial-semigroup = ./partial-semigroup;
};
depOverrides = new: old: {
# package-name = new.callPackage ./nix/package-name-0.0.0.0.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 = "partial-semigroup";
paths = concatMap (x: [x.partial-semigroup]) (attrValues ghc);
} // {
inherit ghc;
pkgs = nixos-22-11;
}