Skip to content

Commit f6f780f

Browse files
SamirTalwarsternenseemann
authored andcommitted
haskell.compiler.ghc94*: apply Cabal cycle patch on aarch64-darwin
This was already applied to GHC 9.2.x, but was not copied to GHC 9.4.x. I have had issues with this locally. The same patch works for both Cabal 3.6 and 3.8, so we can just reuse it.
1 parent 5571179 commit f6f780f

File tree

10 files changed

+37
-5
lines changed

10 files changed

+37
-5
lines changed

pkgs/development/compilers/ghc/9.2.4.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ stdenv.mkDerivation (rec {
216216
# These cause problems as they're not eliminated by GHC's dead code
217217
# elimination on aarch64-darwin. (see
218218
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
219-
./Cabal-3.6-paths-fix-cycle-aarch64-darwin.patch
219+
./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
220220
];
221221

222222
postPatch = "patchShebangs .";

pkgs/development/compilers/ghc/9.2.5.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ stdenv.mkDerivation (rec {
216216
# These cause problems as they're not eliminated by GHC's dead code
217217
# elimination on aarch64-darwin. (see
218218
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
219-
./Cabal-3.6-paths-fix-cycle-aarch64-darwin.patch
219+
./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
220220
];
221221

222222
postPatch = "patchShebangs .";

pkgs/development/compilers/ghc/9.2.6.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ stdenv.mkDerivation (rec {
216216
# These cause problems as they're not eliminated by GHC's dead code
217217
# elimination on aarch64-darwin. (see
218218
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
219-
./Cabal-3.6-paths-fix-cycle-aarch64-darwin.patch
219+
./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
220220
];
221221

222222
postPatch = "patchShebangs .";

pkgs/development/compilers/ghc/9.2.7.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ stdenv.mkDerivation (rec {
216216
# These cause problems as they're not eliminated by GHC's dead code
217217
# elimination on aarch64-darwin. (see
218218
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
219-
./Cabal-3.6-paths-fix-cycle-aarch64-darwin.patch
219+
./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
220220
];
221221

222222
postPatch = "patchShebangs .";

pkgs/development/compilers/ghc/9.2.8.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ stdenv.mkDerivation (rec {
216216
# These cause problems as they're not eliminated by GHC's dead code
217217
# elimination on aarch64-darwin. (see
218218
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
219-
./Cabal-3.6-paths-fix-cycle-aarch64-darwin.patch
219+
./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
220220
];
221221

222222
postPatch = "patchShebangs .";

pkgs/development/compilers/ghc/9.4.2.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@ stdenv.mkDerivation (rec {
196196
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
197197
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
198198
})
199+
] ++ lib.optionals (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64) [
200+
# Prevent the paths module from emitting symbols that we don't use
201+
# when building with separate outputs.
202+
#
203+
# These cause problems as they're not eliminated by GHC's dead code
204+
# elimination on aarch64-darwin. (see
205+
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
206+
./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
199207
];
200208

201209
postPatch = "patchShebangs .";

pkgs/development/compilers/ghc/9.4.3.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@ stdenv.mkDerivation (rec {
196196
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
197197
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
198198
})
199+
] ++ lib.optionals (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64) [
200+
# Prevent the paths module from emitting symbols that we don't use
201+
# when building with separate outputs.
202+
#
203+
# These cause problems as they're not eliminated by GHC's dead code
204+
# elimination on aarch64-darwin. (see
205+
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
206+
./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
199207
];
200208

201209
postPatch = "patchShebangs .";

pkgs/development/compilers/ghc/9.4.4.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,14 @@ stdenv.mkDerivation (rec {
205205
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
206206
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
207207
})
208+
] ++ lib.optionals (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64) [
209+
# Prevent the paths module from emitting symbols that we don't use
210+
# when building with separate outputs.
211+
#
212+
# These cause problems as they're not eliminated by GHC's dead code
213+
# elimination on aarch64-darwin. (see
214+
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
215+
./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
208216
];
209217

210218
postPatch = "patchShebangs .";

pkgs/development/compilers/ghc/9.4.5.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,14 @@ stdenv.mkDerivation (rec {
205205
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
206206
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
207207
})
208+
] ++ lib.optionals (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64) [
209+
# Prevent the paths module from emitting symbols that we don't use
210+
# when building with separate outputs.
211+
#
212+
# These cause problems as they're not eliminated by GHC's dead code
213+
# elimination on aarch64-darwin. (see
214+
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
215+
./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
208216
];
209217

210218
postPatch = "patchShebangs .";

pkgs/development/compilers/ghc/Cabal-3.6-paths-fix-cycle-aarch64-darwin.patch renamed to pkgs/development/compilers/ghc/Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch

File renamed without changes.

0 commit comments

Comments
 (0)