From 1a5f52234e4a21f21eb198ed0bffeb7dc2168bdf Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 13 Oct 2016 21:18:40 +0200 Subject: krebs lib: move {eq,ne,mod} to lib --- krebs/4lib/default.nix | 5 ----- lib/default.nix | 4 ++++ 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 // 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 -- cgit v1.2.3