-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
40 lines (31 loc) · 1.05 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
38
39
40
let
sources = import ./nix/sources.nix;
nixos-22-05 = import sources."nixos-22.05" {};
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 {
ascii-char = ./ascii-char;
};
ghc."8.10" = nixos-22-05.haskell.packages.ghc8107.override (old: {
overrides = combineOverrides old [ sourceOverrides ];
});
ghc."9.0" = nixos-22-11.haskell.packages.ghc90.override (old: {
overrides = combineOverrides old [ sourceOverrides ];
});
ghc."9.2" = nixos-22-11.haskell.packages.ghc92.override (old: {
overrides = combineOverrides old [ sourceOverrides ];
});
ghc."9.4" = nixos-22-11.haskell.packages.ghc94.override (old: {
overrides = combineOverrides old [ sourceOverrides ];
});
in
symlinkJoin {
name = "ascii-char";
paths = concatMap (x: [x.ascii-char]) (attrValues ghc);
} // {
inherit ghc;
pkgs = nixos-22-11;
}