Merge pull request #234862 from figsoda/text

writeTextFile: fix when executable is not a bool
This commit is contained in:
K900 2023-05-29 22:56:41 +03:00 committed by GitHub
commit 1fc30c27e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ rec {
runCommand name
{ inherit text executable checkPhase allowSubstitutes preferLocalBuild;
passAsFile = [ "text" ];
meta = lib.optionalAttrs (executable && matches != null) {
meta = lib.optionalAttrs (toString executable != "" && matches != null) {
mainProgram = lib.head matches;
} // meta;
}