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
@@ -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;
}