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. --- release.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'release.nix') diff --git a/release.nix b/release.nix index ac5eb687..21fc1e6e 100644 --- a/release.nix +++ b/release.nix @@ -81,7 +81,7 @@ in with pkgsUpstream.lib; with builtins; { machines = let # We need to expose all the real builds within vuizvui.lazyPackages to make # sure they don't get garbage collected on the Hydra instance. - wrapLazy = machine: pkgsUpstream.runCommand machine.build.name { + wrapLazy = machine: pkgsUpstream.runCommandLocal machine.build.name { fakeRuntimeDeps = machine.eval.config.vuizvui.lazyPackages; product = machine.build; } '' @@ -97,7 +97,7 @@ in with pkgsUpstream.lib; with builtins; { buildIso = attrs: let name = attrs.iso.config.networking.hostName; cond = attrs.iso.config.vuizvui.createISO; - in if !cond then {} else pkgsUpstream.runCommand "vuizvui-iso-${name}" { + in if !cond then {} else pkgsUpstream.runCommandLocal "vuizvui-iso-${name}" { meta.description = "Live CD/USB stick of ${name}"; iso = attrs.iso.config.system.build.isoImage; passthru.config = attrs.iso.config; -- cgit 1.4.1