rust: set PKG_CONFIG_ALLOW_CROSS conditionally in buildRustPackage

This commit is contained in:
Michael Eden 2019-03-12 09:07:36 -04:00 committed by John Ericson
parent bdd3c3fdcb
commit f93470d7a3

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"