Commit fb445b51 authored by Lin Jian's avatar Lin Jian Committed by Cole Helbling
Browse files

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.
parent 1dd8696f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;";