about summary refs log tree commit diff
path: root/pkgs/build-support/buildenv/default.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-03-14 11:27:15 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-03-14 11:27:15 +0100
commitd6b46ecb30f1a18a4b08ed29f03d2b5a6941aec4 (patch)
treea6b6cc322e9a615bf0e8b49de927d4edfc214554 /pkgs/build-support/buildenv/default.nix
parentab8a691d059b364c435a1871ae2ef70a578685d8 (diff)
parent55b6c1792619085dd8aacf46b94e2f33303dd58e (diff)
downloadnixlib-d6b46ecb30f1a18a4b08ed29f03d2b5a6941aec4.tar
nixlib-d6b46ecb30f1a18a4b08ed29f03d2b5a6941aec4.tar.gz
nixlib-d6b46ecb30f1a18a4b08ed29f03d2b5a6941aec4.tar.bz2
nixlib-d6b46ecb30f1a18a4b08ed29f03d2b5a6941aec4.tar.lz
nixlib-d6b46ecb30f1a18a4b08ed29f03d2b5a6941aec4.tar.xz
nixlib-d6b46ecb30f1a18a4b08ed29f03d2b5a6941aec4.tar.zst
nixlib-d6b46ecb30f1a18a4b08ed29f03d2b5a6941aec4.zip
Merge branch 'closure-size' into p/default-outputs
Diffstat (limited to 'pkgs/build-support/buildenv/default.nix')
-rw-r--r--pkgs/build-support/buildenv/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix
index bcfa2dd1c5a8..8b8c3e3cbc20 100644
--- a/pkgs/build-support/buildenv/default.nix
+++ b/pkgs/build-support/buildenv/default.nix
@@ -16,6 +16,10 @@
 , # Whether to ignore collisions or abort.
   ignoreCollisions ? false
 
+, # If there is a collision, check whether the contents and permissions match
+  # and only if not, throw a collision error.
+  checkCollisionContents ? true
+
 , # The paths (relative to each element of `paths') that we want to
   # symlink (e.g., ["/bin"]).  Any file not inside any of the
   # directories in the list is not symlinked.
@@ -39,7 +43,9 @@
 }:
 
 runCommand name
-  rec { inherit manifest ignoreCollisions passthru meta pathsToLink extraPrefix postBuild buildInputs;
+  rec {
+    inherit manifest ignoreCollisions checkCollisionContents passthru
+            meta pathsToLink extraPrefix postBuild buildInputs;
     pkgs = builtins.toJSON (map (drv: {
       paths =
         [ drv ]