Merge pull request #80348 from basvandijk/symlinkJoin-passAsFile

symlinkJoin: fix "bash: Argument list too long" error
This commit is contained in:
Silvan Mosberger 2020-02-17 19:43:42 +01:00 committed by GitHub
commit cf2a8ac2cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,11 +255,14 @@ rec {
}:
let
args = removeAttrs args_ [ "name" "postBuild" ]
// { inherit preferLocalBuild allowSubstitutes; }; # pass the defaults
// {
inherit preferLocalBuild allowSubstitutes;
passAsFile = [ "paths" ];
}; # pass the defaults
in runCommand name args
''
mkdir -p $out
for i in $paths; do
for i in $(cat $pathsPath); do
${lndir}/bin/lndir -silent $i $out
done
${postBuild}