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.

Lin Jian fb445b51 1dd8696f

Changed files
+1 -1
nixos
modules
programs
+1 -1
nixos/modules/programs/fish.nix
···
'';
babelfishTranslate = path: name:
-
pkgs.runCommand "${name}.fish" {
nativeBuildInputs = [ pkgs.babelfish ];
} "${pkgs.babelfish}/bin/babelfish < ${path} > $out;";
···
'';
babelfishTranslate = path: name:
+
pkgs.runCommandLocal "${name}.fish" {
nativeBuildInputs = [ pkgs.babelfish ];
} "${pkgs.babelfish}/bin/babelfish < ${path} > $out;";