Skip to content

Commit

Permalink
Update compiler/ghc/default.nix
Browse files Browse the repository at this point in the history
Co-authored-by: Moritz Angermann <moritz.angermann@gmail.com>
  • Loading branch information
hamishmack and angerman committed Nov 30, 2022
1 parent c5eb86e commit c5721e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/ghc/default.nix
Expand Up @@ -599,7 +599,10 @@ stdenv.mkDerivation (rec {
mkdir $doc
cp -r _build/stage1/share $doc
runHook postInstall
'' + lib.optionalString (targetPlatform.isWindows) ''
''
# there appears to be a bug in GHCs configure script not properly passing dllwrap, and winders to the
# generated settings file. Hence we patch it back in here.
+ lib.optionalString (targetPlatform.isWindows) ''
substituteInPlace $out/lib/settings \
--replace ',("dllwrap command", "/bin/false")' ',("dllwrap command", "${targetCC.bintools.targetPrefix}dllwrap")' \
--replace ',("windres command", "/bin/false")' ',("windres command", "${targetCC.bintools.targetPrefix}windres")'
Expand Down

0 comments on commit c5721e5

Please sign in to comment.