diff --git a/pkgs/development/compilers/ghc/common-make-native-bignum.nix b/pkgs/development/compilers/ghc/common-make-native-bignum.nix index 03ad68c392a1..c9267b37279f 100644 --- a/pkgs/development/compilers/ghc/common-make-native-bignum.nix +++ b/pkgs/development/compilers/ghc/common-make-native-bignum.nix @@ -593,6 +593,13 @@ stdenv.mkDerivation ( # Hydra which already warrants a significant speedup requiredSystemFeatures = [ "big-parallel" ]; + # Install occasionally fails due to a race condition in minimal builds. + # > /nix/store/wyzpysxwgs3qpvmylm9krmfzh2plicix-coreutils-9.7/bin/install -c -m 755 -d "/nix/store/xzb3390rhvhg2a0cvzmrvjspw1d8nf8h-ghc-riscv64-unknown-linux-gnu-9.4.8/bin" + # > install: cannot create regular file '/nix/store/xzb3390rhvhg2a0cvzmrvjspw1d8nf8h-ghc-riscv64-unknown-linux-gnu-9.4.8/lib/ghc-9.4.8': No such file or directory + preInstall = '' + mkdir -p "$out/lib/${passthru.haskellCompilerName}" + ''; + postInstall = '' settingsFile="$out/lib/${targetPrefix}${passthru.haskellCompilerName}/settings"