diff options
author | Artturin <Artturin@artturin.com> | 2023-03-23 19:34:04 +0200 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-03-24 20:11:33 +0200 |
commit | 780669daf57856d62e672de050324a75f1a66c81 (patch) | |
tree | c3b1960b1246885dc7e4c824b1ac909543623df5 /pkgs/build-support/dotnet | |
parent | 3b7218e93db3e24fec777da4cbb2891c7012052d (diff) | |
download | nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.gz nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.bz2 nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.lz nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.xz nixpkgs-780669daf57856d62e672de050324a75f1a66c81.tar.zst nixpkgs-780669daf57856d62e672de050324a75f1a66c81.zip |
treewide: don't hardcode /nix/store (no rebuilds changes)
improve experience for other store locations
Diffstat (limited to 'pkgs/build-support/dotnet')
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index 32e8cbd2b1a..8858d4e9877 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -176,7 +176,7 @@ stdenvNoCC.mkDerivation (args // { # Note that toString is necessary here as it results in the path at # eval time (i.e. to the file in your local Nixpkgs checkout) rather # than the Nix store path of the path after it's been imported. - if lib.isPath nugetDeps && !lib.hasPrefix "/nix/store/" (toString nugetDeps) + if lib.isPath nugetDeps && !lib.hasPrefix "${builtins.storeDir}/" (toString nugetDeps) then toString nugetDeps else ''$(mktemp -t "${pname}-deps-XXXXXX.nix")''; in |