Open brianmcgee opened 2 months ago
Only saw this now, needs a rebase
Still mulling a bit over this.
Notice how the ./lib.nix is loaded with no inputs, so it can only deal with builtins.
Maybe something like this would be better:
extraArgs = { flake, ... }: {
lib = inputs.nixpkgs.lib.extend flake.lib;
};
We're slowly converging towards a module system.
I tend to customise
nixpkgs.lib
in my projects using extensions. To accommodate this in a 'blueprint' style I've addedextraArgs
rather than trying to further customisenixpkgs
. This has the added benefit of accommodating wider use cases.