symlinkJoin: allow arbitrary additional attributes
This commit is contained in:
parent
e5ac7103ff
commit
ebe1cbe0da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user