diff options
author | Artturi <Artturin@artturin.com> | 2023-03-02 14:25:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 14:25:50 +0200 |
commit | 09b11341b9c1e0ac8368e58917048c9c549c3c87 (patch) | |
tree | a614708031ead74f300237f1910129bea009e903 /pkgs/build-support | |
parent | a1cbe94831087f125b13b6a65e50f791a2ceb5c3 (diff) | |
parent | 28ff7991a137b09d9e2ab29c2f0fc877ae079608 (diff) |
Merge pull request #218984 from Artturin/replacedeplocal
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/replace-dependency.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/replace-dependency.nix b/pkgs/build-support/replace-dependency.nix index 01b93c194c391..5b4c127cdd8e7 100644 --- a/pkgs/build-support/replace-dependency.nix +++ b/pkgs/build-support/replace-dependency.nix @@ -1,4 +1,4 @@ -{ runCommand, nix, lib }: +{ runCommandLocal, nix, lib }: # Replace a single dependency in the requisites tree of drv, propagating # the change all the way up the tree, without a full rebuild. This can be @@ -23,7 +23,7 @@ with lib; let warn = if verbose then builtins.trace else (x: y: y); - references = import (runCommand "references.nix" { exportReferencesGraph = [ "graph" drv ]; } '' + references = import (runCommandLocal "references.nix" { exportReferencesGraph = [ "graph" drv ]; } '' (echo { while read path do @@ -61,7 +61,7 @@ let drvName = drv: discard (substring 33 (stringLength (builtins.baseNameOf drv)) (builtins.baseNameOf drv)); - rewriteHashes = drv: hashes: runCommand (drvName drv) { nixStore = "${nix.out}/bin/nix-store"; } '' + rewriteHashes = drv: hashes: runCommandLocal (drvName drv) { nixStore = "${nix.out}/bin/nix-store"; } '' $nixStore --dump ${drv} | sed 's|${baseNameOf drv}|'$(basename $out)'|g' | sed -e ${ concatStringsSep " -e " (mapAttrsToList (name: value: "'s|${baseNameOf name}|${baseNameOf value}|g'" |