1
0
Fork 1
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:
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'. # 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