diff options
author | Profpatsch <mail@profpatsch.de> | 2019-12-08 13:40:38 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2019-12-08 13:55:01 +0100 |
commit | 5e0baa153e62f8a66462622474e5cd0ee4206b22 (patch) | |
tree | 0f1682c3b137feebd5cf3e50814203ff784db1eb /release.nix | |
parent | f3bc66cbbc4e14940c5b05b1078d1b40fb9807ee (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 'release.nix')
-rw-r--r-- | release.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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; |