symlinkJoin: allow arbitrary additional attributes

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

View File

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