summary refs log tree commit diff
path: root/lib/options.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2020-10-22 13:45:25 +0200
committerRobert Hensing <robert@roberthensing.nl>2020-10-22 13:46:48 +0200
commitc9f8f66248dde642e7a0eea52fe4c32ddb464796 (patch)
treebd458ec5aa99ea26fd5ef75a23297f20fd9e54be /lib/options.nix
parentafa6c51f27fb86fda71f91a51b093a5fc3de797d (diff)
downloadnixpkgs-c9f8f66248dde642e7a0eea52fe4c32ddb464796.tar
nixpkgs-c9f8f66248dde642e7a0eea52fe4c32ddb464796.tar.gz
nixpkgs-c9f8f66248dde642e7a0eea52fe4c32ddb464796.tar.bz2
nixpkgs-c9f8f66248dde642e7a0eea52fe4c32ddb464796.tar.lz
nixpkgs-c9f8f66248dde642e7a0eea52fe4c32ddb464796.tar.xz
nixpkgs-c9f8f66248dde642e7a0eea52fe4c32ddb464796.tar.zst
nixpkgs-c9f8f66248dde642e7a0eea52fe4c32ddb464796.zip
lib/options.nix: Use merge-friendly inherit syntax
Diffstat (limited to 'lib/options.nix')
-rw-r--r--lib/options.nix35
1 files changed, 30 insertions, 5 deletions
diff --git a/lib/options.nix b/lib/options.nix
index 97bb2e77176..87cd8b79796 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 {