lib: working extended lib

This commit is contained in:
Charlie Root 2024-08-30 23:15:56 +02:00
commit 7063ef40d9
3 changed files with 8 additions and 36 deletions

View file

@ -19,12 +19,13 @@
builders = callLibs ./builders.nix;
};
# This makes mkSysytem available *in addition* to `lib.extendedLib.builders.mkSystem`.
# This makes mkSytem available *in addition* to `lib.extendedLib.builders.mkSystem`.
# The syntax is a matter of preference, but it is good to make sure all custom attribute
# sets (e.g., builders) are defined and taken from a separate attrset (extendedLib) to make
# absolutely sure we *never* conflict with nixpkgs. Likewise, the function names inherited
# here should also be different from ones available under `lib` by default, i.e., you cannot
# re-define functions.
inherit (self.extendedLib) builders;
inherit (self.extendedLib.builders) mkSystem;
};