writeTextFile: fix when executable is not a bool
This commit is contained in:
parent
300dbaff42
commit
4431bab003
@ -141,7 +141,7 @@ rec {
|
|||||||
runCommand name
|
runCommand name
|
||||||
{ inherit text executable checkPhase allowSubstitutes preferLocalBuild;
|
{ inherit text executable checkPhase allowSubstitutes preferLocalBuild;
|
||||||
passAsFile = [ "text" ];
|
passAsFile = [ "text" ];
|
||||||
meta = lib.optionalAttrs (executable && matches != null) {
|
meta = lib.optionalAttrs (toString executable != "" && matches != null) {
|
||||||
mainProgram = lib.head matches;
|
mainProgram = lib.head matches;
|
||||||
} // meta;
|
} // meta;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user