From 3bff803bc763c6f7767f087a41a551345dcd22dc Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 13 Feb 2025 21:36:08 +0100 Subject: flake: hydraJobs.templates: fixed self arg to flake --- flake.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7774ee0..6152763 100644 --- a/flake.nix +++ b/flake.nix @@ -220,7 +220,14 @@ # A function taking an attribute set of flake templates, importing their flake.nix and returning an attribute ste of their packages (if the template has one or more) template-packages = templ: (builtins.mapAttrs - (name: value: (((import ./nix/templates/${name}/flake.nix).outputs) inputs).packages or {}) + (name: value: + ( + ( + (import ./nix/templates/${name}/flake.nix).outputs) { + inherit nixpkgs flake-utils; + # Self needs to be the imported flake, as some packages in some templates rely on each other, such as the goapp/backend-docker package which relies on the goapp/backend-pkg. Cross-template references are not supported (yet); + self = (import ./nix/templates/${name}/flake.nix); + }).packages or {}) templ); in { inherit (self) packages; -- cgit 1.4.1