krebs lib: move {eq,ne,mod} to lib

This commit is contained in:
tv 2016-10-13 21:18:40 +02:00
parent b4ec1fba50
commit 1a5f52234e
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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