Files
nixpkgs/lib
Jan Malakhovski 449d43fe01 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 = {}; }; }`.
2018-06-11 15:06:27 +00:00
..
2017-09-16 21:36:43 -04:00
2017-09-16 21:36:43 -04:00
2017-09-16 21:36:43 -04:00
2018-06-10 22:50:36 +02:00
2018-06-10 19:31:09 +02:00
2017-08-22 13:28:55 +03:00
2018-06-11 15:06:27 +00:00
2018-03-04 06:28:34 -08:00