add custom std/trivial.nix

This commit is contained in:
Emile Clark-Boman 2025-12-18 11:54:08 +10:00
parent 212a85c045
commit 5126482fb4
2 changed files with 15 additions and 0 deletions

View file

@ -1,9 +1,11 @@
{...} @ args: let
attrs = import ./attrs.nix args;
lists = import ./lists.nix args;
trivial = import ./trivial.nix args;
in
attrs.mergeAttrsList [
# submodule is included directly to this module (ie self.myFunc)
attrs
lists
trivial
]

13
nib/std/trivial.nix Normal file
View file

@ -0,0 +1,13 @@
{...}: {
id = x: x;
min = x: y:
if x < y
then x
else y;
max = x: y:
if x > y
then x
else y;
}