Commit c688e95 1 parent 472cc94 commit c688e95 Copy full SHA for c688e95
File tree 1 file changed +15
-5
lines changed
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 2
2
, compiler ? "ghc90"
3
3
} :
4
4
let
5
+ # Trick I learned from https://nix.dev/guides/best-practices.html#updating-nested-attribute-sets
6
+ # TODO:
7
+ # pkgs.lib.recursiveUpdate { a = { b = 1; }; } { a = { c = 3;}; }
8
+
5
9
nixpkgs =
6
10
nixpkgsRaw //
7
- { haskellPackages =
8
- nixpkgsRaw . haskellPackages . override {
9
- overrides = self : super : {
10
- statistics = self . haskell . lib . dontCheck super . statistics ;
11
- flatparse = self . haskell . lib . dontCheck super . flatparse ;
11
+ { pkgs = nixpkgsRaw . pkgs //
12
+ { haskell = nixpkgsRaw . pkgs . haskell //
13
+ { packages = nixpkgsRaw . pkgs . haskell . packages //
14
+ { "${ compiler } " =
15
+ nixpkgsRaw . pkgs . haskell . packages . ${ compiler } . override {
16
+ overrides = self : super : {
17
+ statistics = nixpkgsRaw . pkgs . haskell . lib . dontCheck super . statistics ;
18
+ flatparse = nixpkgsRaw . pkgs . haskell . lib . dontCheck super . flatparse ;
19
+ } ;
20
+ } ;
12
21
} ;
13
22
} ;
23
+ } ;
14
24
} ;
15
25
16
26
bellman-ford =
You can’t perform that action at this time.
0 commit comments