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:
parent
1dd8696f96
commit
fb445b517e
|
@ -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;";
|
||||
|
||||
|
|
Loading…
Reference in a new issue