haskell generic-builder: Fix --with-ghc flag for GHCJS as cross

Otherwise it passes `--with-ghc=ghc`, and we do the wrong thing.
This commit is contained in:
John Ericson 2019-12-25 13:14:48 -05:00
parent ed6c877f14
commit 6a23c9ddbe

View File

@ -131,7 +131,7 @@ let
'';
crossCabalFlags = [
"--with-ghc=${ghc.targetPrefix}ghc"
"--with-ghc=${ghcCommand}"
"--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"
] ++ optionals stdenv.hasCC [
"--with-gcc=${stdenv.cc.targetPrefix}cc"