Skip to content

Commit 7539a35

Browse files
committed
Merge remote-tracking branch 'origin/master' into enableIPE
2 parents 19c9ea7 + ce4ab11 commit 7539a35

File tree

158 files changed

+3344
-301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+3344
-301
lines changed

build.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ in rec {
2020
tests = import ./test/default.nix { inherit pkgs evalPackages ifdLevel compiler-nix-name; };
2121

2222
tools = pkgs.lib.optionalAttrs (ifdLevel >= 3) (
23-
pkgs.recurseIntoAttrs ({
23+
pkgs.lib.recurseIntoAttrs ({
2424
cabal-latest = tool compiler-nix-name "cabal" ({
2525
inherit evalPackages;
2626
} // pkgs.lib.optionalAttrs (ghcFromTo "9.13" "9.14") {
@@ -100,8 +100,8 @@ in rec {
100100

101101
# These are pure parts of maintainer-script so they can be built by hydra
102102
# and added to the cache to speed up buildkite.
103-
maintainer-script-cache = pkgs.recurseIntoAttrs (
104-
(pkgs.lib.optionalAttrs (pkgs.system == "x86_64-linux") {
103+
maintainer-script-cache = pkgs.lib.recurseIntoAttrs (
104+
(pkgs.lib.optionalAttrs (pkgs.stdenv.hostPlatform.system == "x86_64-linux") {
105105
inherit (maintainer-scripts) check-hydra;
106106
})
107107
// (pkgs.lib.optionalAttrs (ifdLevel > 2) {

builder/hspkg-builder.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ let
6262

6363
in rec {
6464
components = haskellLib.applyComponents (buildComp pkg.allComponent) pkg;
65-
checks = pkgs.recurseIntoAttrs (builtins.mapAttrs
65+
checks = pkgs.lib.recurseIntoAttrs (builtins.mapAttrs
6666
(_: d: haskellLib.check d)
6767
(lib.filterAttrs (_: d: d.config.doCheck) components.tests));
6868
inherit (package) identifier detailLevel isLocal isProject buildType;

ci.nix

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# short names for nixpkgs versions
2020
nixpkgsVersions = {
21-
"R2505" = inputs.nixpkgs-2505;
21+
"R2511" = inputs.nixpkgs-2511;
2222
"unstable" = inputs.nixpkgs-unstable;
2323
};
2424

@@ -64,12 +64,10 @@
6464
# cabal-install and nix-tools plans. When removing a ghc version
6565
# from here (so that is no longer cached) also remove ./materialized/ghcXXX.
6666
# Update supported-ghc-versions.md to reflect any changes made here.
67-
nixpkgs.lib.optionalAttrs (builtins.elem nixpkgsName ["R2411" "R2505"]) {
67+
nixpkgs.lib.optionalAttrs (builtins.elem nixpkgsName ["R2411" "R2505" "R2511"]) {
6868
ghc96 = false;
6969
ghc98 = false;
70-
ghc98llvm = false;
7170
ghc910 = false;
72-
ghc910llvm = false;
7371
ghc912 = false;
7472
} // nixpkgs.lib.optionalAttrs (nixpkgsName == "unstable") {
7573
ghc96 = true;
@@ -89,11 +87,11 @@
8987
static = p: p.pkgsStatic;
9088
} // lib.optionalAttrs (nixpkgsName == "unstable"
9189
&& (__match ".*llvm" compiler-nix-name == null)
92-
&& !builtins.elem compiler-nix-name ["ghc9102"]) {
90+
&& !builtins.elem compiler-nix-name ["ghc9102" "ghc9103"]) {
9391
inherit (lib.systems.examples) ghcjs;
9492
} // lib.optionalAttrs (nixpkgsName == "unstable"
9593
&& (__match ".*llvm" compiler-nix-name == null)
96-
&& !builtins.elem compiler-nix-name ["ghc967" "ghc984" "ghc9102"]
94+
&& !builtins.elem compiler-nix-name ["ghc967" "ghc984" "ghc9103"]
9795
&& system != "x86_64-darwin") {
9896
inherit (lib.systems.examples) wasi32;
9997
} // lib.optionalAttrs (nixpkgsName == "unstable"
@@ -113,9 +111,12 @@
113111
} // lib.optionalAttrs (__match ".*llvm" compiler-nix-name == null && system == "x86_64-linux" && nixpkgsName == "unstable" && !builtins.elem compiler-nix-name ["ghc902" "ghc928" "ghc948"]) {
114112
# Out llvm versions of GHC seem to break for musl32
115113
inherit (lib.systems.examples) musl32;
116-
} // lib.optionalAttrs (system == "x86_64-linux" && !builtins.elem compiler-nix-name ["ghc902" "ghc928" "ghc948"]) {
114+
} // lib.optionalAttrs (system == "x86_64-linux"
115+
&& !builtins.elem compiler-nix-name ["ghc967" "ghc984" "ghc9103"]) {
117116
inherit (lib.systems.examples) aarch64-android-prebuilt;
118-
} // lib.optionalAttrs (system == "x86_64-linux" && nixpkgsName != "unstable" && !builtins.elem compiler-nix-name ["ghc902" "ghc928" "ghc948" "ghc91320250523"]) {
117+
} // lib.optionalAttrs (system == "x86_64-linux"
118+
&& nixpkgsName != "unstable"
119+
&& !builtins.elem compiler-nix-name ["ghc967" "ghc984" "ghc9103" "ghc91320250523"]) {
119120
inherit (lib.systems.examples) armv7a-android-prebuilt;
120121
} // lib.optionalAttrs (system == "x86_64-linux" && nixpkgsName == "unstable" && !builtins.elem compiler-nix-name ["ghc8107" "ghc902"]) {
121122
# TODO fix this for the compilers we build with hadrian (ghc >=9.4)
@@ -134,15 +135,15 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
134135
in filterAttrsOnlyRecursive (_: v: platformFilter v && !(isDisabled v)) ({
135136
# Native builds
136137
# TODO: can we merge this into the general case by picking an appropriate "cross system" to mean native?
137-
native = pkgs.recurseIntoAttrs ({
138+
native = pkgs.lib.recurseIntoAttrs ({
138139
roots = pkgs.haskell-nix.roots' { inherit compiler-nix-name evalPackages; } ifdLevel;
139140
} // pkgs.lib.optionalAttrs runTests {
140141
inherit (build) tests tools maintainer-scripts maintainer-script-cache;
141142
} // pkgs.lib.optionalAttrs (ifdLevel >= 3) rec {
142143
hello = (pkgs.haskell-nix.hackage-package ({ name = "hello"; version = "1.0.0.2"; inherit evalPackages compiler-nix-name; }
143144
// lib.optionalAttrs (builtins.compareVersions pkgs.buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.13" >= 0) {
144145
shell.tools.hoogle.cabalProjectLocal = ''
145-
allow-newer: *:*
146+
allow-newer: hashable:ghc-bignum, integer-logarithms:ghc-bignum
146147
'';
147148
})).getComponent "exe:hello";
148149
# Make sure the default shell tools (hoogle) are built
@@ -156,7 +157,7 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
156157
then import pinnedNixpkgsSrc (nixpkgsArgs // { inherit system crossSystem; })
157158
else crossSystem (import pinnedNixpkgsSrc (nixpkgsArgs // { inherit system; }));
158159
build = import ./build.nix { inherit pkgs evalPackages ifdLevel compiler-nix-name haskellNix; };
159-
in pkgs.recurseIntoAttrs (pkgs.lib.optionalAttrs (ifdLevel >= 1) ({
160+
in pkgs.lib.recurseIntoAttrs (pkgs.lib.optionalAttrs (ifdLevel >= 1) ({
160161
roots = pkgs.haskell-nix.roots' { inherit compiler-nix-name evalPackages; } ifdLevel // {
161162
ghc = pkgs.buildPackages.haskell-nix.compiler.${compiler-nix-name}.override { ghcEvalPackages = evalPackages; };
162163
};

default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ self // {
100100
pkgs-2505 = import self.inputs.nixpkgs-2505 (nixpkgsArgs // {
101101
localSystem = { inherit system; };
102102
});
103+
pkgs-2511 = import self.inputs.nixpkgs-2511 (nixpkgsArgs // {
104+
localSystem = { inherit system; };
105+
});
103106
pkgs-unstable = import self.inputs.nixpkgs-unstable (nixpkgsArgs // {
104107
localSystem = { inherit system; };
105108
});

docs/reference/supported-ghc-versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ really should use an instance of Nixpkgs provided by `haskell.nix` itself.
2424
|------------------|--------------------|-------------|-----------------------|---------------|
2525
| unstable | `nixpkgs-unstable` | 9.6.7 | `ghc96` or `ghc967` | Yes |
2626
| unstable | `nixpkgs-unstable` | 9.8.4 | `ghc98` or `ghc984` | Yes |
27-
| unstable | `nixpkgs-unstable` | 9.10.2 | `ghc910` or `ghc9102` | Yes |
27+
| unstable | `nixpkgs-unstable` | 9.10.3 | `ghc910` or `ghc9103` | Yes |
2828
| unstable | `nixpkgs-unstable` | 9.12.2 | `ghc912` or `ghc9122` | Yes |
2929

3030
See [ci.nix](https://github.com/input-output-hk/haskell.nix/blob/master/ci.nix)

flake.lock

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

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
nixpkgs-2405 = { url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin"; };
99
nixpkgs-2411 = { url = "github:NixOS/nixpkgs/nixpkgs-24.11-darwin"; };
1010
nixpkgs-2505 = { url = "github:NixOS/nixpkgs/nixpkgs-25.05-darwin"; };
11+
nixpkgs-2511 = { url = "github:NixOS/nixpkgs/nixpkgs-25.11-darwin"; };
1112
nixpkgs-unstable = { url = "github:NixOS/nixpkgs/nixpkgs-unstable"; };
1213
flake-compat = { url = "github:input-output-hk/flake-compat/hkm/gitlab-fix"; flake = false; };
1314
"hls-1.10" = { url = "github:haskell/haskell-language-server/1.10.0.0"; flake = false; };

lazy-inputs/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ in {
3737
inherit ((callFlake { pkgs = final; src = ./ghc984; }).defaultNix) ghc984;
3838
inherit ((callFlake { pkgs = final; src = ./ghc9101; }).defaultNix) ghc9101;
3939
inherit ((callFlake { pkgs = final; src = ./ghc9102; }).defaultNix) ghc9102;
40+
inherit ((callFlake { pkgs = final; src = ./ghc9103; }).defaultNix) ghc9103;
4041
inherit ((callFlake { pkgs = final; src = ./ghc9121; }).defaultNix) ghc9121;
4142
inherit ((callFlake { pkgs = final; src = ./ghc9122; }).defaultNix) ghc9122;
4243
inherit ((callFlake { pkgs = final; src = ./ghc912X; }).defaultNix) ghc912X;

lazy-inputs/ghc9103/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/ghc9103/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+
ghc9103 = {
6+
flake = false;
7+
url = "git+https://github.com/stable-haskell/ghc?ref=ghc-9.10.3-iog&submodules=1";
8+
};
9+
};
10+
11+
outputs = inputs: inputs;
12+
}

0 commit comments

Comments
 (0)