diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-04-26 15:01:41 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-04-26 15:01:41 +0000 |
commit | e5fc65ed40fa984d87c40399f51f3e96fc78d619 (patch) | |
tree | 3e3435d52ecbb8a04b95f055d137121111fcb8ee | |
parent | 48b2a26898b70ba69e32ca74b0e0e42ebf6af241 (diff) | |
download | nixlib-e5fc65ed40fa984d87c40399f51f3e96fc78d619.tar nixlib-e5fc65ed40fa984d87c40399f51f3e96fc78d619.tar.gz nixlib-e5fc65ed40fa984d87c40399f51f3e96fc78d619.tar.bz2 nixlib-e5fc65ed40fa984d87c40399f51f3e96fc78d619.tar.lz nixlib-e5fc65ed40fa984d87c40399f51f3e96fc78d619.tar.xz nixlib-e5fc65ed40fa984d87c40399f51f3e96fc78d619.tar.zst nixlib-e5fc65ed40fa984d87c40399f51f3e96fc78d619.zip |
* writeTextFile: don't use the build hook. NixOS uses this function a
lot, and it causes a lot of unnecessary overhead on machines with remote building enabled. svn path=/nixpkgs/trunk/; revision=33934
-rw-r--r-- | pkgs/build-support/trivial-builders.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix index c8f0272daf81..474d43c30fff 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")" |