lib/file-type: convert executable
to bool (#4036)
It doesn't make sense to pass `executable = null` to `writeTextFile`.
This commit is contained in:
parent
43ed7048f6
commit
9f82227b64
|
@ -115,7 +115,8 @@ in
|
|||
target = mkDefault name;
|
||||
source = mkIf (config.text != null) (
|
||||
mkDefault (pkgs.writeTextFile {
|
||||
inherit (config) executable text;
|
||||
inherit (config) text;
|
||||
executable = config.executable == true; # can be null
|
||||
name = hm.strings.storeFileName name;
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue