rust: set PKG_CONFIG_ALLOW_CROSS conditionally in buildRustPackage

wip/yesman
Michael Eden 5 years ago committed by John Ericson
parent bdd3c3fdcb
commit f93470d7a3
  1. 3
      pkgs/build-support/rust/default.nix

@ -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…
Cancel
Save