@@ -17,31 +17,31 @@ in builtins.listToAttrs (builtins.concatMap (system: builtins.concatMap (compile
17
17
in ( [
18
18
# This set of derivations should be enough to ensure all the materialized files for a
19
19
# given GHC version are checked.
20
- { name = "${ prefix } -extra" ; value = ( pkgs . haskell-nix . roots' compiler-nix-name ) . ghc-extra-projects-nix or { } ; }
20
+ { name = "${ prefix } -extra" ; value = ( pkgs . haskell-nix . roots' { inherit compiler-nix-name ; } ) . ghc-extra-projects-nix or { } ; }
21
21
{ name = "${ prefix } -boot" ; value = pkgs . ghc-boot-packages-nix . ${ compiler-nix-name } ; }
22
22
{ name = "${ prefix } -hello" ; value = ( pkgs . haskell-nix . tool compiler-nix-name "hello" { } ) . project . plan-nix ; }
23
23
] ++ eval . lib . optionals ( ! __elem system [ "aarch64-darwin" "aarch64-linux" "x86_64-darwin" ] ) [
24
- { name = "${ prefix } -windows" ; value = ( pkgsForWindows . pkgsCross . mingwW64 . haskell-nix . roots' compiler-nix-name ) . ghc-extra-projects-nix or { } ; }
24
+ { name = "${ prefix } -windows" ; value = ( pkgsForWindows . pkgsCross . mingwW64 . haskell-nix . roots' { inherit compiler-nix-name ; } ) . ghc-extra-projects-nix or { } ; }
25
25
{ name = "${ prefix } -hello-windows" ; value = ( pkgsForWindows . pkgsCross . mingwW64 . haskell-nix . tool compiler-nix-name "hello" { } ) . project . plan-nix ; }
26
26
] ++ eval . lib . optionals ( system == "x86_64-linux" ) [
27
27
# In some cased you may need comment out one or more of these if the GHC version needed cannot be built.
28
- { name = "${ prefix } -musl" ; value = ( pkgs . pkgsCross . musl64 . haskell-nix . roots' compiler-nix-name ) . ghc-extra-projects-nix or { } ; }
28
+ { name = "${ prefix } -musl" ; value = ( pkgs . pkgsCross . musl64 . haskell-nix . roots' { inherit compiler-nix-name ; } ) . ghc-extra-projects-nix or { } ; }
29
29
{ name = "${ prefix } -hello-musl" ; value = ( pkgs . pkgsCross . musl64 . haskell-nix . tool compiler-nix-name "hello" { } ) . project . plan-nix ; }
30
30
] ++ eval . lib . optionals ( system == "x86_64-linux" && ! __elem compiler-nix-name [ "ghc901" "ghc921" "ghc941" "ghc942" "ghc943" ] ) [
31
- { name = "${ prefix } -arm" ; value = ( pkgs . pkgsCross . aarch64-multiplatform . haskell-nix . roots' compiler-nix-name ) . ghc-extra-projects-nix or { } ; }
31
+ { name = "${ prefix } -arm" ; value = ( pkgs . pkgsCross . aarch64-multiplatform . haskell-nix . roots' { inherit compiler-nix-name ; } ) . ghc-extra-projects-nix or { } ; }
32
32
{ name = "${ prefix } -hello-arm" ; value = ( pkgs . pkgsCross . aarch64-multiplatform . haskell-nix . tool compiler-nix-name "hello" { } ) . project . plan-nix ; }
33
33
] ++ eval . lib . optionals (
34
34
( system == "aarch64-linux" && ! __elem compiler-nix-name [ "ghc8107" "ghc901" "ghc902" "ghc921" "ghc922" "ghc923" "ghc924" "ghc925" "ghc926" "ghc941" "ghc942" "ghc943" ] )
35
35
|| ( system == "x86_64-linux" && ! __elem compiler-nix-name [ "ghc8107" "ghc901" "ghc902"
36
36
"ghc921" "ghc922" "ghc923" "ghc924" "ghc925" "ghc926" "ghc941" "ghc942" "ghc943" "ghc944" "ghc945" "ghc947" "ghc961" "ghc962" "ghc963" "ghc964" "ghc965" ] ) ) [
37
- { name = "${ prefix } -arm-musl" ; value = ( pkgs . pkgsCross . aarch64-multiplatform-musl . haskell-nix . roots' compiler-nix-name ) . ghc-extra-projects-nix or { } ; }
37
+ { name = "${ prefix } -arm-musl" ; value = ( pkgs . pkgsCross . aarch64-multiplatform-musl . haskell-nix . roots' { inherit compiler-nix-name ; } ) . ghc-extra-projects-nix or { } ; }
38
38
{ name = "${ prefix } -hello-arm-musl" ; value = ( pkgs . pkgsCross . aarch64-multiplatform-musl . haskell-nix . tool compiler-nix-name "hello" { } ) . project . plan-nix ; }
39
39
] ++ eval . lib . optionals (
40
40
( system == "x86_64-linux" && __elem compiler-nix-name [ "ghc8107" "ghc961" "ghc962" "ghc963" "ghc964" "ghc965" "ghc981" "ghc982" "ghc983" "ghc984" "ghc9101" ] )
41
41
|| ( system == "aarch64-linux" && __elem compiler-nix-name [ "ghc961" "ghc962" "ghc963" "ghc964" "ghc965" "ghc981" "ghc982" "ghc983" "ghc984" "ghc9101" ] )
42
42
|| ( system == "x86_64-darwin" && __elem compiler-nix-name [ "ghc8107" "ghc961" "ghc962" "ghc963" "ghc964" "ghc964" "ghc981" "ghc982" "ghc983" "ghc984" "ghc9101" ] )
43
43
|| ( system == "aarch64-darwin" && __elem compiler-nix-name [ "ghc961" "ghc962" "ghc963" "ghc964" "ghc981" "ghc965" "ghc982" "ghc983" "ghc984" "ghc9101" ] ) ) [
44
44
{ name = "${ prefix } -boot-ghcjs" ; value = pkgs . pkgsCross . ghcjs . ghc-boot-packages-nix . ${ compiler-nix-name } ; }
45
- { name = "${ prefix } -ghcjs" ; value = ( pkgs . pkgsCross . ghcjs . haskell-nix . roots' compiler-nix-name ) . ghc-extra-projects-nix or { } ; }
45
+ { name = "${ prefix } -ghcjs" ; value = ( pkgs . pkgsCross . ghcjs . haskell-nix . roots' { inherit compiler-nix-name ; } ) . ghc-extra-projects-nix or { } ; }
46
46
{ name = "${ prefix } -hello-ghcjs" ; value = ( pkgs . pkgsCross . ghcjs . haskell-nix . tool compiler-nix-name "hello" { } ) . project . plan-nix ; }
47
47
] ) ) compiler-nix-names ) systems )
0 commit comments