rust: set PKG_CONFIG_ALLOW_CROSS conditionally in buildRustPackage
This commit is contained in:
parent
bdd3c3fdcb
commit
f93470d7a3
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ in stdenv.mkDerivation (args // {
|
|||
|
||||
patches = cargoPatches ++ patches;
|
||||
|
||||
PKG_CONFIG_ALLOW_CROSS =
|
||||
if stdenv.buildPlatform != stdenv.hostPlatform then 1 else 0;
|
||||
|
||||
postUnpack = ''
|
||||
eval "$cargoDepsHook"
|
||||
|
||||
|
|
Loading…
Reference in a new issue