lib/options.nix: Use merge-friendly inherit syntax
This commit is contained in:
parent
afa6c51f27
commit
c9f8f66248
|
@ -3,12 +3,37 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
isAttrs isBool isDerivation isFunction isInt isList isString
|
all
|
||||||
all collect concatMap concatLists elemAt filter foldl' head length mapAttrs optionals optional take
|
collect
|
||||||
|
concatLists
|
||||||
|
concatMap
|
||||||
|
elemAt
|
||||||
|
filter
|
||||||
|
foldl'
|
||||||
|
head
|
||||||
|
isAttrs
|
||||||
|
isBool
|
||||||
|
isDerivation
|
||||||
|
isFunction
|
||||||
|
isInt
|
||||||
|
isList
|
||||||
|
isString
|
||||||
|
length
|
||||||
|
mapAttrs
|
||||||
|
optional
|
||||||
|
optionals
|
||||||
|
take
|
||||||
|
;
|
||||||
|
inherit (lib.attrsets)
|
||||||
|
optionalAttrs
|
||||||
|
;
|
||||||
|
inherit (lib.strings)
|
||||||
|
concatMapStrings
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
|
inherit (lib.types)
|
||||||
|
mkOptionType
|
||||||
;
|
;
|
||||||
inherit (lib.attrsets) optionalAttrs;
|
|
||||||
inherit (lib.strings) concatMapStrings concatStringsSep;
|
|
||||||
inherit (lib.types) mkOptionType;
|
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue