diff options
author | Robert Hensing <robert@roberthensing.nl> | 2020-10-22 13:45:25 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2020-10-22 13:46:48 +0200 |
commit | c9f8f66248dde642e7a0eea52fe4c32ddb464796 (patch) | |
tree | bd458ec5aa99ea26fd5ef75a23297f20fd9e54be | |
parent | afa6c51f27fb86fda71f91a51b093a5fc3de797d (diff) |
lib/options.nix: Use merge-friendly inherit syntax
-rw-r--r-- | lib/options.nix | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/lib/options.nix b/lib/options.nix index 97bb2e77176c..87cd8b797969 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -3,12 +3,37 @@ let inherit (lib) - isAttrs isBool isDerivation isFunction isInt isList isString - all collect concatMap concatLists elemAt filter foldl' head length mapAttrs optionals optional take + all + 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 rec { |