From 5c89edbc3b2f7968fe7c2f66a78546d0dd69576a Mon Sep 17 00:00:00 2001 From: Tyson Whitehead Date: Tue, 12 Jan 2016 11:08:25 -0500 Subject: [PATCH] buildRustPackage: don't hardcode /nix/store, use $NIX_STORE --- pkgs/build-support/rust/patch-registry-deps/pkg-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/rust/patch-registry-deps/pkg-config b/pkgs/build-support/rust/patch-registry-deps/pkg-config index 2acf489851e..fbb09430458 100644 --- a/pkgs/build-support/rust/patch-registry-deps/pkg-config +++ b/pkgs/build-support/rust/patch-registry-deps/pkg-config @@ -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