lib.{literalExpression, literalDocBook}: init as shims
Compatibility shims for https://github.com/NixOS/nixpkgs/pull/136909
This commit is contained in:
parent
781b1f8e3a
commit
dcfdb79b09
|
@ -123,8 +123,8 @@ let
|
||||||
inherit (self.options) isOption mkEnableOption mkSinkUndeclaredOptions
|
inherit (self.options) isOption mkEnableOption mkSinkUndeclaredOptions
|
||||||
mergeDefaultOption mergeOneOption mergeEqualOption getValues
|
mergeDefaultOption mergeOneOption mergeEqualOption getValues
|
||||||
getFiles optionAttrSetToDocList optionAttrSetToDocList'
|
getFiles optionAttrSetToDocList optionAttrSetToDocList'
|
||||||
scrubOptionValue literalExample showOption showFiles
|
scrubOptionValue literalExpression literalExample literalDocBook
|
||||||
unknownModule mkOption;
|
showOption showFiles unknownModule mkOption;
|
||||||
inherit (self.types) isType setType defaultTypeMerge defaultFunctor
|
inherit (self.types) isType setType defaultTypeMerge defaultFunctor
|
||||||
isOptionType mkOptionType;
|
isOptionType mkOptionType;
|
||||||
inherit (self.asserts)
|
inherit (self.asserts)
|
||||||
|
|
|
@ -217,6 +217,10 @@ rec {
|
||||||
*/
|
*/
|
||||||
literalExample = text: { _type = "literalExample"; inherit text; };
|
literalExample = text: { _type = "literalExample"; inherit text; };
|
||||||
|
|
||||||
|
# Compatibility shims for https://github.com/NixOS/nixpkgs/pull/136909
|
||||||
|
literalExpression = literalExample;
|
||||||
|
literalDocBook = literalExample;
|
||||||
|
|
||||||
# Helper functions.
|
# Helper functions.
|
||||||
|
|
||||||
/* Convert an option, described as a list of the option parts in to a
|
/* Convert an option, described as a list of the option parts in to a
|
||||||
|
|
Loading…
Reference in New Issue