about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/9.2.5.nix
diff options
context:
space:
mode:
authorMarc Scholten <marc@digitallyinduced.com>2023-09-30 23:33:08 +0200
committersternenseemann <sternenseemann@systemli.org>2023-12-13 00:16:18 +0100
commit54fc9f63561a5522161600bdbe392b67a698ce59 (patch)
tree6a0594caa2f60b6077cf5f4c81894b9dd1206953 /pkgs/development/compilers/ghc/9.2.5.nix
parent7ac0108ffa944bf9e6ddbb20c5b7929ba0df2baa (diff)
haskell.packages.ghc9{6,8}: work around aarch64-darwin output cycles
This ports our infamous patch for `Cabal` which cheesily prevents an
output cycle for derivations that use separate bin outputs where
references caused by the `Paths_*` module can't be eliminated by the GHC
aarch64-darwin codegen backend.

See also

- the original issue #140774,
- the original patch for GHC 9.2 #216857
- the ported patch for GHC 9.4
  https://github.com/NixOS/nixpkgs/pull/240387/commits/f6f780f129f50df536fb301b9dac554f9744ab4b

Co-authored-by: sternenseemann <sternenseemann@systemli.org>
Diffstat (limited to 'pkgs/development/compilers/ghc/9.2.5.nix')
-rw-r--r--pkgs/development/compilers/ghc/9.2.5.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/9.2.5.nix b/pkgs/development/compilers/ghc/9.2.5.nix
index a54894bda9527..670af5c7ba9a3 100644
--- a/pkgs/development/compilers/ghc/9.2.5.nix
+++ b/pkgs/development/compilers/ghc/9.2.5.nix
@@ -218,7 +218,7 @@ stdenv.mkDerivation (rec {
     # These cause problems as they're not eliminated by GHC's dead code
     # elimination on aarch64-darwin. (see
     # https://github.com/NixOS/nixpkgs/issues/140774 for details).
-    ./Cabal-3.6-3.8-paths-fix-cycle-aarch64-darwin.patch
+    ./Cabal-at-least-3.6-paths-fix-cycle-aarch64-darwin.patch
   ];
 
   postPatch = "patchShebangs .";