diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix index c8f0272daf8..474d43c30ff 100644 --- a/pkgs/build-support/trivial-builders.nix +++ b/pkgs/build-support/trivial-builders.nix @@ -18,7 +18,11 @@ rec { , executable ? false # run chmod +x ? , destination ? "" # relative path appended to $out eg "/bin/foo" }: - runCommand name {inherit text executable; } + runCommand name + { inherit text executable; + # Pointless to do this on a remote machine. + preferLocalBuild = true; + } '' n=$out${destination} mkdir -p "$(dirname "$n")"