mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
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'.
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue