From 5e0baa153e62f8a66462622474e5cd0ee4206b22 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 8 Dec 2019 13:40:38 +0100 Subject: treewide: use `runCommandLocal` where applicable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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. --- pkgs/profpatsch/sandbox.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/profpatsch/sandbox.nix') diff --git a/pkgs/profpatsch/sandbox.nix b/pkgs/profpatsch/sandbox.nix index b3107f5a..733cd956 100644 --- a/pkgs/profpatsch/sandbox.nix +++ b/pkgs/profpatsch/sandbox.nix @@ -26,7 +26,7 @@ let mount = "${pkgs.utillinux}/bin/mount"; unshare = "${pkgs.utillinux}/bin/unshare"; # this is the directory the sandbox runs under (in a separate mount namespace) - newroot = pkgs.runCommand "sandbox-root" {} ''mkdir "$out"''; + newroot = pkgs.runCommandLocal "sandbox-root" {} ''mkdir "$out"''; # this runs in a separate namespace, sets up a chroot root # and then chroots into the new root. sandbox = writeExecline "sandbox" {} (builtins.concatLists [ -- cgit 1.4.1