mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
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 {
|
mkDerivation = pkgs.callPackage ./generic-builder.nix {
|
||||||
inherit stdenv;
|
inherit stdenv;
|
||||||
inherit (pkgs) fetchurl pkgconfig glibcLocales coreutils gnugrep gnused;
|
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: {
|
hscolour = overrideCabal self.hscolour (drv: {
|
||||||
isLibrary = false;
|
isLibrary = false;
|
||||||
doHaddock = false;
|
doHaddock = false;
|
||||||
|
@ -94,6 +94,7 @@ let
|
|||||||
"--with-gcc=${ghc.cc}"
|
"--with-gcc=${ghc.cc}"
|
||||||
"--with-ld=${ghc.ld}"
|
"--with-ld=${ghc.ld}"
|
||||||
"--hsc2hs-options=--cross-compile"
|
"--hsc2hs-options=--cross-compile"
|
||||||
|
"--with-hsc2hs=${nativeGhc}/bin/hsc2hs"
|
||||||
];
|
];
|
||||||
|
|
||||||
crossCabalFlagsString =
|
crossCabalFlagsString =
|
||||||
|
Loading…
Reference in New Issue
Block a user