summary refs log tree commit diff
path: root/lib/modules.nix
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2018-02-10 10:28:30 +0100
committerRobert Helgesson <robert@rycee.net>2018-02-10 10:29:33 +0100
commita7ed44ccadfcf1bd54d0197fbc87b6c1b0bcef7b (patch)
treed927e195cd53bff5ca47fa31e62d1109ed78af49 /lib/modules.nix
parent08d140081660885320d630ff9d90d888f816f558 (diff)
downloadnixpkgs-a7ed44ccadfcf1bd54d0197fbc87b6c1b0bcef7b.tar
nixpkgs-a7ed44ccadfcf1bd54d0197fbc87b6c1b0bcef7b.tar.gz
nixpkgs-a7ed44ccadfcf1bd54d0197fbc87b6c1b0bcef7b.tar.bz2
nixpkgs-a7ed44ccadfcf1bd54d0197fbc87b6c1b0bcef7b.tar.lz
nixpkgs-a7ed44ccadfcf1bd54d0197fbc87b6c1b0bcef7b.tar.xz
nixpkgs-a7ed44ccadfcf1bd54d0197fbc87b6c1b0bcef7b.tar.zst
nixpkgs-a7ed44ccadfcf1bd54d0197fbc87b6c1b0bcef7b.zip
lib: make use of visible variable in doRename
The `visible` variable was not hooked up previously. It is used to
determine whether the renamed option should be shown in the
documentation.
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 654c4c588de..019f11d11bc 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -664,6 +664,7 @@ rec {
     in
       { config, options, ... }:
       { options = setAttrByPath from (mkOption {
+          inherit visible;
           description = "Alias of <option>${showOption to}</option>.";
           apply = x: use (toOf config);
         });