From acd0e3898feb321cb9a71a0fd376f1157d0f4553 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 13 Apr 2024 15:00:20 +0200 Subject: [PATCH] pkgs/config: remove uses of lib.mdDoc this commit is a no-op, as lib.mdDoc was already defined as id. --- pkgs/top-level/config.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/top-level/config.nix b/pkgs/top-level/config.nix index 3418a44e0f132..92a9c7915b6b7 100644 --- a/pkgs/top-level/config.nix +++ b/pkgs/top-level/config.nix @@ -6,7 +6,6 @@ let inherit (lib) literalExpression mapAttrsToList - mdDoc mkOption optionals types @@ -15,7 +14,7 @@ let mkMassRebuild = args: mkOption (builtins.removeAttrs args [ "feature" ] // { type = args.type or (types.uniq types.bool); default = args.default or false; - description = mdDoc ((args.description or '' + description = ((args.description or '' Whether to ${args.feature} while building nixpkgs packages. '') + '' Changing the default may cause a mass rebuild. @@ -40,7 +39,7 @@ let /* Config options */ warnUndeclaredOptions = mkOption { - description = mdDoc "Whether to warn when `config` contains an unrecognized attribute."; + description = "Whether to warn when `config` contains an unrecognized attribute."; type = types.bool; default = false; }; @@ -72,7 +71,7 @@ let allowAliases = mkOption { type = types.bool; default = true; - description = mdDoc '' + description = '' Whether to expose old attribute names for compatibility. The recommended setting is to enable this, as it @@ -92,7 +91,7 @@ let default = false; # getEnv part is in check-meta.nix defaultText = literalExpression ''false || builtins.getEnv "NIXPKGS_ALLOW_UNFREE" == "1"''; - description = mdDoc '' + description = '' Whether to allow unfree packages. See [Installing unfree packages](https://nixos.org/manual/nixpkgs/stable/#sec-allow-unfree) in the NixOS manual. @@ -104,7 +103,7 @@ let default = false; # getEnv part is in check-meta.nix defaultText = literalExpression ''false || builtins.getEnv "NIXPKGS_ALLOW_BROKEN" == "1"''; - description = mdDoc '' + description = '' Whether to allow broken packages. See [Installing broken packages](https://nixos.org/manual/nixpkgs/stable/#sec-allow-broken) in the NixOS manual. @@ -116,7 +115,7 @@ let default = false; # getEnv part is in check-meta.nix defaultText = literalExpression ''false || builtins.getEnv "NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM" == "1"''; - description = mdDoc '' + description = '' Whether to allow unsupported packages. See [Installing packages on unsupported systems](https://nixos.org/manual/nixpkgs/stable/#sec-allow-unsupported-system) in the NixOS manual. @@ -138,7 +137,7 @@ let showDerivationWarnings = mkOption { type = types.listOf (types.enum [ "maintainerless" ]); default = []; - description = mdDoc '' + description = '' Which warnings to display for potentially dangerous or deprecated values passed into `stdenv.mkDerivation`. @@ -153,7 +152,7 @@ let checkMeta = mkOption { type = types.bool; default = false; - description = mdDoc '' + description = '' Whether to check that the `meta` attribute of derivations are correct during evaluation time. ''; };