Author: eelco
Date: Thu Apr 26 15:01:41 2012
New Revision: 33934
URL: https://nixos.org/websvn/nix/?rev=33934&sc=1

Log:
* 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.

Modified:
   nixpkgs/trunk/pkgs/build-support/trivial-builders.nix

Modified: nixpkgs/trunk/pkgs/build-support/trivial-builders.nix
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/trivial-builders.nix       Thu Apr 26 
14:53:58 2012        (r33933)
+++ nixpkgs/trunk/pkgs/build-support/trivial-builders.nix       Thu Apr 26 
15:01:41 2012        (r33934)
@@ -18,7 +18,11 @@
     , 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")"
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to