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
commit753629714cd3344cd1002e64f4fb3dfd5b4ab146 (patch)
treeeddf21d967c1459322e45c1ecc2a951c59e7d029
parente8baf98e409b528c87cb68841f1532ebf652ee2c (diff)
krebs lib: move {eq,ne,mod} to lib
-rw-r--r--lib/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 6c607f1..1f50108 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