Browse Source

lib.{literalExpression, literalDocBook}: init as shims

Compatibility shims for https://github.com/NixOS/nixpkgs/pull/136909
nsd-state-dir
Robert Hensing 4 months ago
parent
commit
dcfdb79b09
  1. 4
      lib/default.nix
  2. 4
      lib/options.nix

4
lib/default.nix

@ -123,8 +123,8 @@ let
inherit (self.options) isOption mkEnableOption mkSinkUndeclaredOptions
mergeDefaultOption mergeOneOption mergeEqualOption getValues
getFiles optionAttrSetToDocList optionAttrSetToDocList'
scrubOptionValue literalExample showOption showFiles
unknownModule mkOption;
scrubOptionValue literalExpression literalExample literalDocBook
showOption showFiles unknownModule mkOption;
inherit (self.types) isType setType defaultTypeMerge defaultFunctor
isOptionType mkOptionType;
inherit (self.asserts)

4
lib/options.nix

@ -217,6 +217,10 @@ rec {
*/
literalExample = text: { _type = "literalExample"; inherit text; };
# Compatibility shims for https://github.com/NixOS/nixpkgs/pull/136909
literalExpression = literalExample;
literalDocBook = literalExample;
# Helper functions.
/* Convert an option, described as a list of the option parts in to a

Loading…
Cancel
Save