about summary refs log tree commit diff
path: root/pkgs/build-support/trivial-builders.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-02-19 13:46:21 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-02-19 13:47:50 +0100
commit4b581903b3c49a11b7db9358308bed76df7b2ffa (patch)
treea443fce29032f60262e3f212b2227a42579c1dbe /pkgs/build-support/trivial-builders.nix
parentc6d9d8dfa12ed000d3084da6887a38b3ca7a031c (diff)
downloadnixlib-4b581903b3c49a11b7db9358308bed76df7b2ffa.tar
nixlib-4b581903b3c49a11b7db9358308bed76df7b2ffa.tar.gz
nixlib-4b581903b3c49a11b7db9358308bed76df7b2ffa.tar.bz2
nixlib-4b581903b3c49a11b7db9358308bed76df7b2ffa.tar.lz
nixlib-4b581903b3c49a11b7db9358308bed76df7b2ffa.tar.xz
nixlib-4b581903b3c49a11b7db9358308bed76df7b2ffa.tar.zst
nixlib-4b581903b3c49a11b7db9358308bed76df7b2ffa.zip
requireFile: preferLocalBuild = true
There's no point trying to "distribute" showing the error message.
Diffstat (limited to 'pkgs/build-support/trivial-builders.nix')
-rw-r--r--pkgs/build-support/trivial-builders.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix
index 134ef48ad061..6cd82adf8e70 100644
--- a/pkgs/build-support/trivial-builders.nix
+++ b/pkgs/build-support/trivial-builders.nix
@@ -118,15 +118,16 @@ rec {
       name = name_;
       outputHashAlgo = hashAlgo;
       outputHash = hash;
+      preferLocalBuild = true;
       builder = writeScript "restrict-message" ''
-source ${stdenv}/setup
-cat <<_EOF_
+        source ${stdenv}/setup
+        cat <<_EOF_
 
-***
-${msg}
-***
+        ***
+        ${msg}
+        ***
 
-_EOF_
+        _EOF_
       '';
     };