Make inputs and inputs' available in pkgs arg

This allows functions with access only to pkgs to access the flake inputs. The
inputs' arg allows easy access to per system attributes.
This commit is contained in:
Archit Gupta 2023-04-14 10:44:05 -07:00
parent 5fbb85744b
commit 7c903add3f

View File

@ -13,6 +13,11 @@ let
baseModule = src: inputs: root: {
withOverlay = final: prev: {
inherit inputs;
inputs' = mapAttrs
(_: mapAttrs
(_: v: v.${prev.system} or { }))
inputs;
flakelite = exports // {
meta = {
platforms = root.systems;