Skip to content

Commit 8e9bd71

Browse files
Merge pull request #163426 from sternenseemann/ghc-9.2.2
haskell.compiler: ghc921 -> ghc922
2 parents 0dcac29 + 47f837f commit 8e9bd71

File tree

9 files changed

+21
-28
lines changed

9 files changed

+21
-28
lines changed

lib/options.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ rec {
122122
Example:
123123
mkPackageOption pkgs "GHC" {
124124
default = [ "ghc" ];
125-
example = "pkgs.haskell.package.ghc921.ghc.withPackages (hkgs: [ hkgs.primes ])";
125+
example = "pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])";
126126
}
127127
=> { _type = "option"; default = «derivation /nix/store/jxx55cxsjrf8kyh3fp2ya17q99w7541r-ghc-8.10.7.drv»; defaultText = { ... }; description = "The GHC package to use."; example = { ... }; type = { ... }; }
128128
*/

nixos/doc/manual/development/option-declarations.section.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ lib.mkOption {
119119
```nix
120120
lib.mkPackageOption pkgs "GHC" {
121121
default = [ "ghc" ];
122-
example = "pkgs.haskell.package.ghc921.ghc.withPackages (hkgs: [ hkgs.primes ])";
122+
example = "pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])";
123123
}
124124
# is like
125125
lib.mkOption {
126126
type = lib.types.package;
127127
default = pkgs.ghc;
128128
defaultText = lib.literalExpression "pkgs.ghc";
129-
example = lib.literalExpression "pkgs.haskell.package.ghc921.ghc.withPackages (hkgs: [ hkgs.primes ])";
129+
example = lib.literalExpression "pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])";
130130
description = "The GHC package to use.";
131131
}
132132
```

nixos/doc/manual/from_md/development/option-declarations.section.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,14 @@ lib.mkOption {
181181
<programlisting language="bash">
182182
lib.mkPackageOption pkgs &quot;GHC&quot; {
183183
default = [ &quot;ghc&quot; ];
184-
example = &quot;pkgs.haskell.package.ghc921.ghc.withPackages (hkgs: [ hkgs.primes ])&quot;;
184+
example = &quot;pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])&quot;;
185185
}
186186
# is like
187187
lib.mkOption {
188188
type = lib.types.package;
189189
default = pkgs.ghc;
190190
defaultText = lib.literalExpression &quot;pkgs.ghc&quot;;
191-
example = lib.literalExpression &quot;pkgs.haskell.package.ghc921.ghc.withPackages (hkgs: [ hkgs.primes ])&quot;;
191+
example = lib.literalExpression &quot;pkgs.haskell.package.ghc922.ghc.withPackages (hkgs: [ hkgs.primes ])&quot;;
192192
description = &quot;The GHC package to use.&quot;;
193193
}
194194
</programlisting>

pkgs/development/compilers/ghc/9.2.1.nix renamed to pkgs/development/compilers/ghc/9.2.2.nix

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ assert buildTargetLlvmPackages.llvm == llvmPackages.llvm;
167167
assert stdenv.targetPlatform.isDarwin -> buildTargetLlvmPackages.clang == llvmPackages.clang;
168168

169169
stdenv.mkDerivation (rec {
170-
version = "9.2.1";
170+
version = "9.2.2";
171171
pname = "${targetPrefix}ghc${variantSuffix}";
172172

173173
src = fetchurl {
174174
url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-src.tar.xz";
175-
sha256 = "f444012f97a136d9940f77cdff03fda48f9475e2ed0fec966c4d35c4df55f746";
175+
sha256 = "902463a4cc6ee479af9358b9f8b2ee3237b03e934a1ea65b6d1fcf3e0d749ea6";
176176
};
177177

178178
enableParallelBuilding = true;
@@ -221,6 +221,9 @@ stdenv.mkDerivation (rec {
221221
export NIX_LDFLAGS+=" -rpath $out/lib/ghc-${version}"
222222
'' + lib.optionalString stdenv.isDarwin ''
223223
export NIX_LDFLAGS+=" -no_dtrace_dof"
224+
225+
# GHC tries the host xattr /usr/bin/xattr by default which fails since it expects python to be 2.7
226+
export XATTR=${lib.getBin xattr}/bin/xattr
224227
'' + lib.optionalString targetPlatform.useAndroidPrebuilt ''
225228
sed -i -e '5i ,("armv7a-unknown-linux-androideabi", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "cortex-a8", ""))' llvm-targets
226229
'' + lib.optionalString targetPlatform.isMusl ''
@@ -282,10 +285,6 @@ stdenv.mkDerivation (rec {
282285
autoSignDarwinBinariesHook
283286
] ++ lib.optionals enableDocs [
284287
sphinx
285-
] ++ lib.optionals stdenv.isDarwin [
286-
# TODO(@sternenseemann): backport addition of XATTR env var like
287-
# https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6447
288-
xattr
289288
];
290289

291290
# For building runtime libs

pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ self: super: {
4242
unix = null;
4343
xhtml = null;
4444

45-
# Workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/20594
46-
tf-random = overrideCabal {
47-
doHaddock = !pkgs.stdenv.isAarch64;
48-
} super.tf-random;
49-
5045
# Tests fail because of typechecking changes
5146
conduit = dontCheck super.conduit;
5247

pkgs/development/tools/haskell/haskell-language-server/withWrapper.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{ lib
22
, stdenv
3-
, supportedGhcVersions ? [ "884" "8107" "902" ]
4-
++ lib.optionals (!stdenv.hostPlatform.isAarch64) [ "921" ]
3+
, supportedGhcVersions ? [ "884" "8107" "902" "922" ]
54
, dynamic ? false
65
, haskellPackages
76
, haskell

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13754,7 +13754,7 @@ with pkgs;
1375413754
stdenv = clangStdenv;
1375513755
};
1375613756

13757-
jacinda = haskell.lib.compose.justStaticExecutables haskell.packages.ghc921.jacinda;
13757+
jacinda = haskell.lib.compose.justStaticExecutables haskell.packages.ghc922.jacinda;
1375813758

1375913759
janet = callPackage ../development/interpreters/janet {};
1376013760

pkgs/top-level/haskell-packages.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ let
1313
"integer-simple"
1414
"native-bignum"
1515
"ghc902"
16-
"ghc921"
16+
"ghc922"
1717
"ghcHEAD"
1818
];
1919

2020
nativeBignumIncludes = [
2121
"ghc902"
22-
"ghc921"
22+
"ghc922"
2323
"ghcHEAD"
2424
];
2525

@@ -118,7 +118,7 @@ in {
118118
buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_12;
119119
llvmPackages = pkgs.llvmPackages_12;
120120
};
121-
ghc921 = callPackage ../development/compilers/ghc/9.2.1.nix {
121+
ghc922 = callPackage ../development/compilers/ghc/9.2.2.nix {
122122
bootPkgs =
123123
# aarch64 ghc8107Binary exceeds max output size on hydra
124124
if stdenv.isAarch64 || stdenv.isAarch32 then
@@ -224,9 +224,9 @@ in {
224224
ghc = bh.compiler.ghc902;
225225
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.0.x.nix { };
226226
};
227-
ghc921 = callPackage ../development/haskell-modules {
228-
buildHaskellPackages = bh.packages.ghc921;
229-
ghc = bh.compiler.ghc921;
227+
ghc922 = callPackage ../development/haskell-modules {
228+
buildHaskellPackages = bh.packages.ghc922;
229+
ghc = bh.compiler.ghc922;
230230
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
231231
};
232232
ghcHEAD = callPackage ../development/haskell-modules {

pkgs/top-level/release-haskell.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let
5252
ghc884
5353
ghc8107
5454
ghc902
55-
ghc921
55+
ghc922
5656
];
5757

5858
# packagePlatforms applied to `haskell.packages.*`
@@ -407,11 +407,11 @@ let
407407
jobs.pkgsMusl.haskell.compiler.ghc884
408408
jobs.pkgsMusl.haskell.compiler.ghc8107
409409
jobs.pkgsMusl.haskell.compiler.ghc902
410-
jobs.pkgsMusl.haskell.compiler.ghc921
410+
jobs.pkgsMusl.haskell.compiler.ghc922
411411
jobs.pkgsMusl.haskell.compiler.ghcHEAD
412412
jobs.pkgsMusl.haskell.compiler.integer-simple.ghc8107
413413
jobs.pkgsMusl.haskell.compiler.native-bignum.ghc902
414-
jobs.pkgsMusl.haskell.compiler.native-bignum.ghc921
414+
jobs.pkgsMusl.haskell.compiler.native-bignum.ghc922
415415
jobs.pkgsMusl.haskell.compiler.native-bignum.ghcHEAD
416416
];
417417
};

0 commit comments

Comments
 (0)