summaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
parentb4ec1fba50dc81df89cce88808dab1e232806cf4 (diff)
krebs lib: move {eq,ne,mod} to lib
Diffstat (limited 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 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