3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Lin Jian 2022-11-04 15:08:33 +08:00 committed by Cole Helbling
parent 1dd8696f96
commit fb445b517e

View file

@ -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;";