rust: set PKG_CONFIG_ALLOW_CROSS conditionally in buildRustPackage

This commit is contained in:
Michael Eden
2019-03-29 11:11:00 -04:00
committed by John Ericson
parent bdd3c3fdcb
commit f93470d7a3
+3
View File
@@ -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"