about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-12-08 13:40:38 +0100
committerProfpatsch <mail@profpatsch.de>2019-12-08 13:55:01 +0100
commit5e0baa153e62f8a66462622474e5cd0ee4206b22 (patch)
tree0f1682c3b137feebd5cf3e50814203ff784db1eb /tests
parentf3bc66cbbc4e14940c5b05b1078d1b40fb9807ee (diff)
treewide: use `runCommandLocal` where applicable
`runCommandLocal` was added to nixpkgs in
https://github.com/NixOS/nixpkgs/pull/74642
to speed up trivial `runCommand` derivations by always building them
locally. We have a few places where that’s good to use.
Diffstat (limited to 'tests')
-rw-r--r--tests/sandbox.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sandbox.nix b/tests/sandbox.nix
index 0a860793..66187b23 100644
--- a/tests/sandbox.nix
+++ b/tests/sandbox.nix
@@ -19,7 +19,7 @@
 
     environment.systemPackages = let
       mkNestedLinksTo = drv: let
-        mkLink = name: to: pkgs.runCommand name { inherit to; } ''
+        mkLink = name: to: pkgs.runCommandLocal name { inherit to; } ''
           ln -s "$to" "$out"
         '';
       in mkLink "nested-1" (mkLink "nested-2" (mkLink "nested-3" drv));
@@ -50,7 +50,7 @@
           # symlinks.
           lfile="$(< ${mkNestedLinksTo (pkgs.writeText "target" "file")})"
           test "$lfile" = file
-          ldir="$(< ${mkNestedLinksTo (pkgs.runCommand "target" {} ''
+          ldir="$(< ${mkNestedLinksTo (pkgs.runCommandLocal "target" {} ''
             mkdir -p "$out"
             echo dir > "$out/canary"
           '')}/canary)"