Skip to content

Commit e38f009

Browse files
committed
Add materialized files
1 parent b8f865f commit e38f009

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/check-compiler-materialization/default.nix

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,31 @@ in builtins.listToAttrs (builtins.concatMap (system: builtins.concatMap (compile
1717
in ([
1818
# This set of derivations should be enough to ensure all the materialized files for a
1919
# 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 {}; }
2121
{ name = "${prefix}-boot"; value = pkgs.ghc-boot-packages-nix.${compiler-nix-name}; }
2222
{ name = "${prefix}-hello"; value = (pkgs.haskell-nix.tool compiler-nix-name "hello" {}).project.plan-nix; }
2323
] ++ 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 {}; }
2525
{ name = "${prefix}-hello-windows"; value = (pkgsForWindows.pkgsCross.mingwW64.haskell-nix.tool compiler-nix-name "hello" {}).project.plan-nix; }
2626
] ++ eval.lib.optionals (system == "x86_64-linux") [
2727
# 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 {}; }
2929
{ name = "${prefix}-hello-musl"; value = (pkgs.pkgsCross.musl64.haskell-nix.tool compiler-nix-name "hello" {}).project.plan-nix; }
3030
] ++ 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 {}; }
3232
{ name = "${prefix}-hello-arm"; value = (pkgs.pkgsCross.aarch64-multiplatform.haskell-nix.tool compiler-nix-name "hello" {}).project.plan-nix; }
3333
] ++ eval.lib.optionals (
3434
(system == "aarch64-linux" && !__elem compiler-nix-name ["ghc8107" "ghc901" "ghc902" "ghc921" "ghc922" "ghc923" "ghc924" "ghc925" "ghc926" "ghc941" "ghc942" "ghc943"])
3535
|| (system == "x86_64-linux" && !__elem compiler-nix-name ["ghc8107" "ghc901" "ghc902"
3636
"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 {}; }
3838
{ name = "${prefix}-hello-arm-musl"; value = (pkgs.pkgsCross.aarch64-multiplatform-musl.haskell-nix.tool compiler-nix-name "hello" {}).project.plan-nix; }
3939
] ++ eval.lib.optionals (
4040
(system == "x86_64-linux" && __elem compiler-nix-name ["ghc8107" "ghc961" "ghc962" "ghc963" "ghc964" "ghc965" "ghc981" "ghc982" "ghc983" "ghc984" "ghc9101"])
4141
|| (system == "aarch64-linux" && __elem compiler-nix-name ["ghc961" "ghc962" "ghc963" "ghc964" "ghc965" "ghc981" "ghc982" "ghc983" "ghc984" "ghc9101"])
4242
|| (system == "x86_64-darwin" && __elem compiler-nix-name ["ghc8107" "ghc961" "ghc962" "ghc963" "ghc964" "ghc964" "ghc981" "ghc982" "ghc983" "ghc984" "ghc9101"])
4343
|| (system == "aarch64-darwin" && __elem compiler-nix-name ["ghc961" "ghc962" "ghc963" "ghc964" "ghc981" "ghc965" "ghc982" "ghc983" "ghc984" "ghc9101"])) [
4444
{ 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 {}; }
4646
{ name = "${prefix}-hello-ghcjs"; value = (pkgs.pkgsCross.ghcjs.haskell-nix.tool compiler-nix-name "hello" {}).project.plan-nix; }
4747
])) compiler-nix-names) systems)

0 commit comments

Comments
 (0)