diff --git a/flake.nix b/flake.nix index e639cfd..b70ff8c 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,13 @@ { 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"; outputs = diff --git a/justfile b/justfile index b52cf94..6f5167c 100644 --- a/justfile +++ b/justfile @@ -36,3 +36,11 @@ boot-vm: test: 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 + diff --git a/package.nix b/package.nix index b03faa5..4107313 100644 --- a/package.nix +++ b/package.nix @@ -74,6 +74,8 @@ php82.buildComposerProject (finalAttrs: { inherit src version; pname = "${pname}-composer"; + passthru.ui = ui; + nativeBuildInputs = [ jq nodejs_22