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. --- modules/core/lazy-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/core/lazy-packages.nix') diff --git a/modules/core/lazy-packages.nix b/modules/core/lazy-packages.nix index 80053396..16f6587e 100644 --- a/modules/core/lazy-packages.nix +++ b/modules/core/lazy-packages.nix @@ -12,7 +12,7 @@ let # The command used to fetch the store path from the binary cache. fetchSubstitute = "${escapeShellArg "${pkgs.nix}/bin/nix-store"} -r"; - mkWrapper = package: pkgs.runCommand "${package.name}-lazy" { + mkWrapper = package: pkgs.runCommandLocal "${package.name}-lazy" { inherit package; } '' encoded="$(echo "$package" | ${encoder})" -- cgit 1.4.1