summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-10-13 21:18:40 +0200
committertv <tv@krebsco.de>2016-10-13 21:51:27 +0200
commit1a5f52234e4a21f21eb198ed0bffeb7dc2168bdf (patch)
treed9b70348b8bf663b68441312c694e3c3627b4fdc
parentb4ec1fba50dc81df89cce88808dab1e232806cf4 (diff)
krebs lib: move {eq,ne,mod} to lib
-rw-r--r--krebs/4lib/default.nix5
-rw-r--r--lib/default.nix4
2 files changed, 4 insertions, 5 deletions
diff --git a/krebs/4lib/default.nix b/krebs/4lib/default.nix
index b95564f74..3f224edd1 100644
--- a/krebs/4lib/default.nix
+++ b/krebs/4lib/default.nix
@@ -8,11 +8,6 @@ with lib;
let out = lib // rec {
- eq = x: y: x == y;
- ne = x: y: x != y;
-
- mod = x: y: x - y * (x / y);
-
guard = spec@{ type, value, ... }:
assert isOptionType type;
if type.check value
diff --git a/lib/default.nix b/lib/default.nix
index 6c607f13b..1f5010853 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -1,6 +1,10 @@
let
lib = import <nixpkgs/lib> // builtins // {
shell = import ./shell.nix { inherit lib; };
+
+ eq = x: y: x == y;
+ ne = x: y: x != y;
+ mod = x: y: x - y * (x / y);
};
in