lib: working extended lib
This commit is contained in:
parent
afb4687a3e
commit
7063ef40d9
3 changed files with 8 additions and 36 deletions
|
@ -1,9 +1,6 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (inputs) self;
|
||||
{inputs, ...}: let
|
||||
inherit (inputs) self nixpkgs;
|
||||
inherit (nixpkgs) lib;
|
||||
in {
|
||||
mkSystem = {
|
||||
withSystem,
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue