Skip to content

Commit b3ee2d8

Browse files
committed
Merge remote-tracking branch 'origin/master' into armv7a
# Conflicts: # test/gi-gtk/default.nix
2 parents 917ce14 + 9261dd9 commit b3ee2d8

File tree

17 files changed

+204
-55
lines changed

17 files changed

+204
-55
lines changed

build.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ in rec {
2828
pkgs.recurseIntoAttrs ({
2929
cabal-latest = tool compiler-nix-name "cabal" ({
3030
inherit evalPackages;
31-
} // pkgs.lib.optionalAttrs (ghcFromTo "9.12" "9.13") {
31+
} // pkgs.lib.optionalAttrs (ghcFromTo "9.13" "9.14") {
3232
cabalProjectLocal = builtins.readFile ./test/cabal.project.local;
3333
});
3434
} // pkgs.lib.optionalAttrs (__compareVersions haskell.compiler.${compiler-nix-name}.version "9.8" < 0) {

ci.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
ghc98llvm = false;
7575
ghc910 = true;
7676
ghc910llvm = true;
77+
ghc9121 = true;
7778
ghc912X = true;
7879
ghc913 = true;
7980
})));

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazy-inputs/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ in {
3434
inherit ((callFlake { pkgs = final; src = ./ghc983; }).defaultNix) ghc983;
3535
inherit ((callFlake { pkgs = final; src = ./ghc984; }).defaultNix) ghc984;
3636
inherit ((callFlake { pkgs = final; src = ./ghc9101; }).defaultNix) ghc9101;
37+
inherit ((callFlake { pkgs = final; src = ./ghc9121; }).defaultNix) ghc9121;
3738
inherit ((callFlake { pkgs = final; src = ./ghc912X; }).defaultNix) ghc912X;
3839
inherit ((callFlake { pkgs = final; src = ./ghc913; }).defaultNix) ghc913;
3940
} // prev.haskell-nix.sources;

lazy-inputs/ghc9121/flake.lock

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazy-inputs/ghc9121/flake.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
description = "Lazy Input for Haskell.nix";
3+
4+
inputs = {
5+
ghc9121 = {
6+
flake = false;
7+
url = "git+https://github.com/stable-haskell/ghc?ref=ghc-9.12.1-iog&submodules=1";
8+
};
9+
};
10+
11+
outputs = inputs: inputs;
12+
}

lazy-inputs/ghc912X/flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazy-inputs/ghc913/flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/call-cabal-project-to-nix.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -517,18 +517,18 @@ let
517517
json_cabal_file=$(mktemp)
518518
cabal2json $fixed_cabal_file > $json_cabal_file
519519
520-
exposed_modules="$(jq -r '.library."exposed-modules"[]|select(type=="array")[]' $json_cabal_file)"
521-
reexported_modules="$(jq -r '.library."reexported-modules"//[]|.[]|select(type=="array")[]' $json_cabal_file)"
520+
exposed_modules="$(jq -r '.library."exposed-modules"//[]|.[]|select(type=="array")[]' $json_cabal_file)"
521+
reexported_modules="$(jq -r '.library."reexported-modules"//[]|.[]|select(type=="array")[]' $json_cabal_file | sed 's/.* as //g')"
522522
523523
# FIXME This is a bandaid. Rather than doing this, conditionals should be interpreted.
524524
${pkgs.lib.optionalString pkgs.stdenv.targetPlatform.isGhcjs ''
525-
exposed_modules+=" $(jq -r '.library."exposed-modules"[]|select(type=="object" and .if.arch == "javascript")|.then[]' $json_cabal_file)"
525+
exposed_modules+=" $(jq -r '.library."exposed-modules"//[]|.[]|select(type=="object" and .if.arch == "javascript")|.then[]' $json_cabal_file)"
526526
''}
527527
${pkgs.lib.optionalString pkgs.stdenv.targetPlatform.isWindows ''
528-
exposed_modules+=" $(jq -r '.library."exposed-modules"[]|select(type=="object" and .if.os == "windows")|.then[]' $json_cabal_file)"
528+
exposed_modules+=" $(jq -r '.library."exposed-modules"//[]|.[]|select(type=="object" and .if.os == "windows")|.then[]' $json_cabal_file)"
529529
''}
530530
${pkgs.lib.optionalString (!pkgs.stdenv.targetPlatform.isWindows) ''
531-
exposed_modules+=" $(jq -r '.library."exposed-modules"[]|select(type=="object" and .if.not.os == "windows")|.then[]' $json_cabal_file)"
531+
exposed_modules+=" $(jq -r '.library."exposed-modules"//[]|.[]|select(type=="object" and .if.not.os == "windows")|.then[]' $json_cabal_file)"
532532
''}
533533
534534
EXPOSED_MODULES_${varname name}="$(tr '\n' ' ' <<< "$exposed_modules $reexported_modules")"

materialized/ghc-boot-packages-nix/ghc9101-ghcjs/ghc-toolchain.nix

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)