1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

write-text: support empty files

This commit is contained in:
Daiderd Jordan 2017-01-05 23:23:59 +01:00
parent e925a2d50e
commit fc2bc4e05b
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -52,10 +52,7 @@ in
config = {
source = mkMerge
[ (mkDefaultIf (config.text != "") drv)
(mkDefaultIf (config.text == "") (abort "environment.etc.${name}.text is empty but no source was defined."))
];
source = mkDefault drv;
};
}