git.iko.soy/typeable/nixpkgs
on master help sign in
symlinkJoin: allow arbitrary additional attributes
commitebe1cbe0dad4632161842017094ebfd73253ffbf authorNikolay Amiantov <ab@fmap.me> dateFri 27 May 2016, 13:38 (11 years ago) parente5ac710
1 file changed+8−10
pkgs/build-support/trivial-builders.nix+8−10
pkgs/build-support/trivial-builders.nix+8−10
@@ -48,17 +48,15 @@ rec {
4848
4949 # Create a forest of symlinks to the files in `paths'.
5050 symlinkJoin =
51− { name
52− , paths
53− , preferLocalBuild ? true
54− , allowSubstitutes ? false
55− , postBuild ? ""
56− , buildInputs ? []
57− , meta ? {}
58− }:
51+ args@{ name
52+ , paths
53+ , preferLocalBuild ? true
54+ , allowSubstitutes ? false
55+ , postBuild ? ""
56+ , ...
57+ }:
5958 runCommand name
60− { inherit paths preferLocalBuild allowSubstitutes buildInputs meta;
61− }
59+ (removeAttrs args [ "name" "postBuild" ])
6260 ''
6361 mkdir -p $out
6462 for i in $paths; do