symlinkJoin: allow arbitrary additional attributes

This commit is contained in:
Nikolay Amiantov 2016-05-27 13:38:06 +03:00
parent e5ac7103ff
commit ebe1cbe0da

@ -48,17 +48,15 @@ rec {
# Create a forest of symlinks to the files in `paths'. # Create a forest of symlinks to the files in `paths'.
symlinkJoin = symlinkJoin =
{ name args@{ name
, paths , paths
, preferLocalBuild ? true , preferLocalBuild ? true
, allowSubstitutes ? false , allowSubstitutes ? false
, postBuild ? "" , postBuild ? ""
, buildInputs ? [] , ...
, meta ? {} }:
}:
runCommand name runCommand name
{ inherit paths preferLocalBuild allowSubstitutes buildInputs meta; (removeAttrs args [ "name" "postBuild" ])
}
'' ''
mkdir -p $out mkdir -p $out
for i in $paths; do for i in $paths; do