From 7c903add3f0208c5091c7d51c9cbb79a5b2f45d9 Mon Sep 17 00:00:00 2001 From: Archit Gupta Date: Fri, 14 Apr 2023 10:44:05 -0700 Subject: [PATCH] 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. --- default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/default.nix b/default.nix index bbd85a8..0b8cfc3 100644 --- a/default.nix +++ b/default.nix @@ -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;