summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-12-30 21:04:52 +0100
committerpennae <82953136+pennae@users.noreply.github.com>2023-01-05 02:33:13 +0100
commit9da5f12ecffa60f7a4712516177ede318b608f0d (patch)
treed3fb619e32d3088515481304a9f8c08697b23534 /nixos/modules/misc
parent4c1cfbdb844babe1054c7f365eac337396092d60 (diff)
downloadnixpkgs-9da5f12ecffa60f7a4712516177ede318b608f0d.tar
nixpkgs-9da5f12ecffa60f7a4712516177ede318b608f0d.tar.gz
nixpkgs-9da5f12ecffa60f7a4712516177ede318b608f0d.tar.bz2
nixpkgs-9da5f12ecffa60f7a4712516177ede318b608f0d.tar.lz
nixpkgs-9da5f12ecffa60f7a4712516177ede318b608f0d.tar.xz
nixpkgs-9da5f12ecffa60f7a4712516177ede318b608f0d.tar.zst
nixpkgs-9da5f12ecffa60f7a4712516177ede318b608f0d.zip
modules: add mkPackageOptionMD
another transitional option factory, like mkAliasOptionModuleMD.
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r--nixos/modules/misc/documentation.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/misc/documentation.nix b/nixos/modules/misc/documentation.nix
index 64a8f7846b4..e44a9899772 100644
--- a/nixos/modules/misc/documentation.nix
+++ b/nixos/modules/misc/documentation.nix
@@ -50,7 +50,7 @@ let
           (name: value:
             let
               wholeName = "${namePrefix}.${name}";
-              guard = lib.warn "Attempt to evaluate package ${wholeName} in option documentation; this is not supported and will eventually be an error. Use `mkPackageOption` or `literalExpression` instead.";
+              guard = lib.warn "Attempt to evaluate package ${wholeName} in option documentation; this is not supported and will eventually be an error. Use `mkPackageOption{,MD}` or `literalExpression` instead.";
             in if isAttrs value then
               scrubDerivations wholeName value
               // optionalAttrs (isDerivation value) {