mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
Merge pull request #234862 from figsoda/text
writeTextFile: fix when executable is not a bool
This commit is contained in:
commit
1fc30c27e9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user