mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
haskellPackages.mkDerivation: fix pkg-config cross
When cross compiling the pkg-config binary is prefixed and cabal needs to be made aware of this. Note: the `--with-pkg-config` flag can't be added unconditionally because if the package doesn't need pkg-config (thus pkg-config is not in the PATH) cabal consider this a hard failure.
This commit is contained in:
parent
e5622af8b6
commit
f649fb8b4a
@ -181,7 +181,8 @@ let
|
||||
] ++ optionals (!isHaLVM) [
|
||||
"--hsc2hs-option=--cross-compile"
|
||||
(optionalString enableHsc2hsViaAsm "--hsc2hs-option=--via-asm")
|
||||
];
|
||||
] ++ optional (allPkgconfigDepends != [])
|
||||
"--with-pkg-config=${pkg-config.targetPrefix}pkg-config";
|
||||
|
||||
parallelBuildingFlags = "-j$NIX_BUILD_CORES" + optionalString stdenv.isLinux " +RTS -A64M -RTS";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user