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
..
systems Merge branch 'plat-fix-for-merge-2' into master 2018-06-01 20:08:08 +03:00
tests lib: bitAnd, bitOr, bitXor (bitsize-agnostic fallback function) (#41491) 2018-06-10 21:25:48 +02:00
attrsets.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
composable-derivation.nix lib: trivial spelling fixes 2017-04-19 19:37:55 -05:00
customisation.nix lib.addPassthru: removed as scheduled 2018-03-03 17:57:38 +01:00
debug.nix lib/debug: add replacement instructions & release notes 2018-04-27 18:59:39 +02:00
default.nix lib: bitAnd, bitOr, bitXor (bitsize-agnostic fallback function) (#41491) 2018-06-10 21:25:48 +02:00
deprecated.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
fetchers.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
filesystem.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
fixed-points.nix Revert "Merge branch 'improved-make-overridable' of git://github.com/ElvishJerricco/nixpkgs" 2017-09-29 09:11:26 -04:00
generators.nix lib/generators: print paths without quotes & move function down 2018-04-25 15:31:17 +02:00
licenses.nix maxscale: init at 2.1.17 (#33835) 2018-06-10 22:50:36 +02:00
lists.nix lib: add groupBy (#38612) 2018-06-10 19:31:09 +02:00
meta.nix treewide: remove lib.meta.enableIfAvailable 2018-05-09 16:21:22 -05:00
minver.nix Nix minimal version: 1.10 -> 1.11 2017-08-22 13:28:55 +03:00
modules.nix lib: fix and simplify doRename 2018-06-11 15:06:27 +00:00
options.nix lib/options: teach showOptions about funny option names 2018-03-05 09:58:06 -05:00
sources.nix callCabal2nix: Fix calling with a path in the store. 2018-01-11 10:17:56 -05:00
strings-with-deps.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
strings.nix lib: Add more configure flag helpers 2018-05-11 17:43:35 +02:00
trivial.nix lib: bitAnd, bitOr, bitXor (bitsize-agnostic fallback function) (#41491) 2018-06-10 21:25:48 +02:00
types.nix doc: Fixes documented default option for <name> for submodules. (#40464) 2018-05-16 18:11:36 +02:00
versions.nix lib: add versions library 2018-03-04 06:28:34 -08:00