diff options
author | (cdep)illabout <cdep.illabout@gmail.com> | 2019-01-24 12:58:33 +0900 |
---|---|---|
committer | (cdep)illabout <cdep.illabout@gmail.com> | 2019-01-24 13:02:16 +0900 |
commit | 81fa1e392be44585fe83e26921ce3bd720891def (patch) | |
tree | 7c551320ca703cc7684fa7d2e0f85d0f364d2053 /lib/tests/modules/alias-with-priority.nix | |
parent | 0abf1810668ec8df0321156b0675519610513100 (diff) | |
download | nixpkgs-81fa1e392be44585fe83e26921ce3bd720891def.tar nixpkgs-81fa1e392be44585fe83e26921ce3bd720891def.tar.gz nixpkgs-81fa1e392be44585fe83e26921ce3bd720891def.tar.bz2 nixpkgs-81fa1e392be44585fe83e26921ce3bd720891def.tar.lz nixpkgs-81fa1e392be44585fe83e26921ce3bd720891def.tar.xz nixpkgs-81fa1e392be44585fe83e26921ce3bd720891def.tar.zst nixpkgs-81fa1e392be44585fe83e26921ce3bd720891def.zip |
lib/modules: Change mkAliasOptionModule to use the priority for the alias.
This commit changes the `mkAliasOptionModule` function to make sure that the priority for the aliased option is propagated to the non-aliased option. This also affects the `mkRenamedOptionModule` function in a similar fashion. This also removes the `mkAliasOptionModuleWithPriority` function, since its functionality is now subsumed by `mkAliasOptionModule`. This change was recommended by @nbp: https://github.com/NixOS/nixpkgs/pull/53397#discussion_r245487432
Diffstat (limited to 'lib/tests/modules/alias-with-priority.nix')
-rw-r--r-- | lib/tests/modules/alias-with-priority.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tests/modules/alias-with-priority.nix b/lib/tests/modules/alias-with-priority.nix index 923483684cb..ba25b527aa2 100644 --- a/lib/tests/modules/alias-with-priority.nix +++ b/lib/tests/modules/alias-with-priority.nix @@ -32,7 +32,7 @@ with lib; imports = [ # Create an alias for the "enable" option. - (mkAliasOptionModuleWithPriority [ "enableAlias" ] [ "enable" ]) + (mkAliasOptionModule [ "enableAlias" ] [ "enable" ]) # Disable the aliased option, but with a default (low) priority so it # should be able to be overridden by the next import. |