From fb445b517ea4b379c822723b484847e01fd5bf6c Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Fri, 4 Nov 2022 15:08:33 +0800 Subject: [PATCH] nixos/fish: use a local version of runCommand for babelfishTranslate Building etc."fish/setEnvironment.fish" needs config.system.build.setEnvironment, which can be very large. And what babelfishTranslate does is to translate env vars exported by bash syntax, which does not need much computing power. This patch can reduce the network traffic when using remote builders with almost no harm. --- nixos/modules/programs/fish.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/fish.nix b/nixos/modules/programs/fish.nix index 357105c3e79b..160adc0cad6d 100644 --- a/nixos/modules/programs/fish.nix +++ b/nixos/modules/programs/fish.nix @@ -35,7 +35,7 @@ let ''; babelfishTranslate = path: name: - pkgs.runCommand "${name}.fish" { + pkgs.runCommandLocal "${name}.fish" { nativeBuildInputs = [ pkgs.babelfish ]; } "${pkgs.babelfish}/bin/babelfish < ${path} > $out;";