3
0
Fork 0
forked from mirrors/nixpkgs

etc: Use a friendlier name than "etc-file"

This commit is contained in:
Eelco Dolstra 2015-12-30 15:13:43 +01:00
parent 1ba2015450
commit e78bad5262

View file

@ -112,8 +112,9 @@ in
config = {
target = mkDefault name;
source = mkIf (config.text != null)
(mkDefault (pkgs.writeText "etc-file" config.text));
source = mkIf (config.text != null) (
let name' = "etc-" + baseNameOf name;
in mkDefault (pkgs.writeText name' config.text));
};
});