about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-08-04 15:15:55 +0200
committersternenseemann <sternenseemann@systemli.org>2022-08-04 15:15:55 +0200
commit4e7c3b982831bc209072fc0a31cd3e11f9ac7b56 (patch)
treeee30809ece388164a8a7e6609a8459b3d2dfd187 /pkgs/development/compilers/ghc
parent17746af0c56499240953cbcf8166f05cf34e796d (diff)
haskell.compiler.ghc941: apply fix for racy build system
https://gitlab.haskell.org/ghc/ghc/-/merge_requests/8751
https://gitlab.haskell.org/ghc/ghc/-/issues/21934

Hopefully this patch fixes the problem we experienced on Hydra once (out
of three builds).
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/9.4.1.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/9.4.1.nix b/pkgs/development/compilers/ghc/9.4.1.nix
index f883796452c84..e24f9fbb3767e 100644
--- a/pkgs/development/compilers/ghc/9.4.1.nix
+++ b/pkgs/development/compilers/ghc/9.4.1.nix
@@ -197,6 +197,12 @@ stdenv.mkDerivation (rec {
       extraPrefix = "utils/haddock/";
       stripLen = 1;
     })
+    # fix race condition in make build system
+    (fetchpatch {
+      name = "ghc-hs-boot-copying-fix.patch";
+      url = "https://gitlab.haskell.org/ghc/ghc/-/commit/4f17eff0cbd125eca55b68f4927befdd45008eb6.diff";
+      sha256 = "0anq3w9z9mhxb0wx6rvxac3n7rl3apcma9zk3r9zz9hj9v7vkqzx";
+    })
   ];
 
   postPatch = "patchShebangs .";