Merge pull request #21811 from shlevy/ghc-cross-hsc2hs-jailbreak
GHC cross compilation native jailbreak and hsc2hs
This commit is contained in:
commit
e755dc3fd7
@ -14,7 +14,10 @@ let
|
||||
mkDerivation = pkgs.callPackage ./generic-builder.nix {
|
||||
inherit stdenv;
|
||||
inherit (pkgs) fetchurl pkgconfig glibcLocales coreutils gnugrep gnused;
|
||||
inherit (self) ghc jailbreak-cabal;
|
||||
jailbreak-cabal = if (self.ghc.cross or null) != null
|
||||
then self.ghc.bootPkgs.jailbreak-cabal
|
||||
else self.jailbreak-cabal;
|
||||
inherit (self) ghc;
|
||||
hscolour = overrideCabal self.hscolour (drv: {
|
||||
isLibrary = false;
|
||||
doHaddock = false;
|
||||
|
@ -94,6 +94,7 @@ let
|
||||
"--with-gcc=${ghc.cc}"
|
||||
"--with-ld=${ghc.ld}"
|
||||
"--hsc2hs-options=--cross-compile"
|
||||
"--with-hsc2hs=${nativeGhc}/bin/hsc2hs"
|
||||
];
|
||||
|
||||
crossCabalFlagsString =
|
||||
|
Loading…
Reference in New Issue
Block a user