diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-10-04 17:02:29 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-10-05 01:10:06 +0200 |
commit | 6c2bf141cf87d62cc8e79a155b12d3382dd10558 (patch) | |
tree | 3ffd8624cea5fba46d1574dd5a928f78158246ca /lib/modules.nix | |
parent | 65242d4a744f818e0ca459e711793fa9c2b55238 (diff) | |
download | nixpkgs-6c2bf141cf87d62cc8e79a155b12d3382dd10558.tar nixpkgs-6c2bf141cf87d62cc8e79a155b12d3382dd10558.tar.gz nixpkgs-6c2bf141cf87d62cc8e79a155b12d3382dd10558.tar.bz2 nixpkgs-6c2bf141cf87d62cc8e79a155b12d3382dd10558.tar.lz nixpkgs-6c2bf141cf87d62cc8e79a155b12d3382dd10558.tar.xz nixpkgs-6c2bf141cf87d62cc8e79a155b12d3382dd10558.tar.zst nixpkgs-6c2bf141cf87d62cc8e79a155b12d3382dd10558.zip |
lib: Use arithmetic operators rather than builtins.add etc.
Diffstat (limited to 'lib/modules.nix')
-rw-r--r-- | lib/modules.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modules.nix b/lib/modules.nix index 1d428311cd1..5ef7b4bb090 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -278,7 +278,7 @@ rec { let defaultPrio = 100; getPrio = def: if def.value._type or "" == "override" then def.value.priority else defaultPrio; - min = x: y: if builtins.lessThan x y then x else y; + min = x: y: if x < y then x else y; highestPrio = fold (def: prio: min (getPrio def) prio) 9999 defs; strip = def: if def.value._type or "" == "override" then def // { value = def.value.content; } else def; in concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs; |