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/default.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'pkgs/profpatsch/default.nix') diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix index eba52312..5cd28182 100644 --- a/pkgs/profpatsch/default.nix +++ b/pkgs/profpatsch/default.nix @@ -54,16 +54,10 @@ let }; in import src { nixpkgs = pkgs; }; - runCommandLocal = name: args: cmd: - pkgs.runCommand name (args // { - preferLocalBuild = true; - allowSubstitutes = false; - }) cmd; - testing = import ./testing { inherit stdenv lib; inherit (runExeclineFns) runExecline; - inherit (pkgs) runCommand; + inherit (pkgs) runCommandLocal; bin = getBins pkgs.s6PortableUtils [ "s6-touch" "s6-echo" ]; }; -- cgit 1.4.1