rust: set PKG_CONFIG_ALLOW_CROSS conditionally in buildRustPackage
This commit is contained in:
parent
bdd3c3fdcb
commit
f93470d7a3
@ -56,6 +56,9 @@ in stdenv.mkDerivation (args // {
|
|||||||
|
|
||||||
patches = cargoPatches ++ patches;
|
patches = cargoPatches ++ patches;
|
||||||
|
|
||||||
|
PKG_CONFIG_ALLOW_CROSS =
|
||||||
|
if stdenv.buildPlatform != stdenv.hostPlatform then 1 else 0;
|
||||||
|
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
eval "$cargoDepsHook"
|
eval "$cargoDepsHook"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user