flake: add cachix binary cache

Adds nixConfig substituter/key for the invoiceninja-nixos cachix cache,
a `just push-cache` target to build and push the package and automated
test to it, and exposes the UI frontend build as a passthru output
(`invoiceninja.ui`) so it can be built and pushed independently.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 15:59:29 -04:00
co-authored by Claude Sonnet 5
parent 0f1f3f6675
commit 4e544f6e46
3 changed files with 17 additions and 0 deletions
+7
View File
@@ -1,6 +1,13 @@
{ {
description = "An Invoice Ninja package and module."; description = "An Invoice Ninja package and module.";
nixConfig = {
extra-substituters = [ "https://invoiceninja-nixos.cachix.org" ];
extra-trusted-public-keys = [
"invoiceninja-nixos.cachix.org-1:TmRZaji8FFVjjIw9KZmvLrxMxfP+JDThOyOX04z526A="
];
};
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
outputs = outputs =
+8
View File
@@ -36,3 +36,11 @@ boot-vm:
test: test:
nix flake check -L nix flake check -L
[doc('Build the package and automated test, then push results to the invoiceninja-nixos cachix cache')]
[group('maintenance')]
push-cache:
nix build --print-out-paths --no-link \
".#invoiceninja" \
".#checks.x86_64-linux.invoiceninja" \
| cachix push invoiceninja-nixos
+2
View File
@@ -74,6 +74,8 @@ php82.buildComposerProject (finalAttrs: {
inherit src version; inherit src version;
pname = "${pname}-composer"; pname = "${pname}-composer";
passthru.ui = ui;
nativeBuildInputs = [ nativeBuildInputs = [
jq jq
nodejs_22 nodejs_22