buildRustPackage: don't hardcode /nix/store, use $NIX_STORE

This commit is contained in:
Tyson Whitehead 2016-01-12 11:08:25 -05:00
parent eda93bb51f
commit 5c89edbc3b

View File

@ -4,5 +4,5 @@ for dir in pkg-config-*; do
echo "Patching pkg-config registry dep"
substituteInPlace "$dir/src/lib.rs" \
--replace '"/usr"' '"/nix/store/"'
--replace '"/usr"' '"'"$NIX_STORE"'/"'
done