diff options
| author | Jan Malakhovski <oxij@oxij.org> | 2018-04-28 20:16:37 +0000 |
|---|---|---|
| committer | Jan Malakhovski <oxij@oxij.org> | 2018-06-11 15:06:27 +0000 |
| commit | 449d43fe01d9406d5fb74a687167dee316ec0ca9 (patch) | |
| tree | 97e93ad48c460f73c653d08d62ee814f22f2ea56 /pkgs/development/python-modules/GitPython/hardcode-git-path.patch | |
| parent | c0c43e9c0767bb49a836d165f2b542a3e1334362 (diff) | |
lib: fix and simplify `doRename`
Before this change `mkRenamedOptionModule` would override option defaults
even when the old option name is left unused. For instance
```nix
{
optios = {
services.name.new = mkOption {
default = { one = {}; };
};
};
imports = [
(mkRenamedOptionModule [ "services" "name" "old" ] [ "services" "name" "new" "two" ])
];
config = {};
}
```
would evaluate to
`{ config.services.name.new = { two = {}; }; }`
when you'd expect it to evaluate to
`{ config.services.name.new = { one = {}; }; }`.
Diffstat (limited to 'pkgs/development/python-modules/GitPython/hardcode-git-path.patch')
0 files changed, 0 insertions, 0 deletions
