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/display-infos/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/profpatsch/display-infos') diff --git a/pkgs/profpatsch/display-infos/default.nix b/pkgs/profpatsch/display-infos/default.nix index b626e844..b8bb2a07 100644 --- a/pkgs/profpatsch/display-infos/default.nix +++ b/pkgs/profpatsch/display-infos/default.nix @@ -1,4 +1,4 @@ -{ lib, runCommand, writeText, python3, libnotify, bc, sfttime }: +{ lib, runCommandLocal, writeText, python3, libnotify, bc, sfttime }: let name = "display-infos-0.1.0"; @@ -61,7 +61,7 @@ let ''; in - with lib; runCommand "display-infos" { + with lib; runCommandLocal "display-infos" { meta.description = "Script to display time & battery"; } '' substitute ${script} script \ -- cgit 1.4.1