diff options
author | Emile <git@emile.space> | 2025-02-13 21:36:08 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2025-02-13 21:36:08 +0100 |
commit | 3bff803bc763c6f7767f087a41a551345dcd22dc (patch) | |
tree | 37a46ef46c436480bd6b7f76199ecaaf9c75697e | |
parent | 16f96c8094d78532e35c9b839614ed2f5ac575bf (diff) |
flake: hydraJobs.templates: fixed self arg to flake
-rw-r--r-- | flake.nix | 9 |
1 files changed, 8 insertions, 1 deletions
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; |