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:
@@ -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 =
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -74,6 +74,8 @@ php82.buildComposerProject (finalAttrs: {
|
||||
inherit src version;
|
||||
pname = "${pname}-composer";
|
||||
|
||||
passthru.ui = ui;
|
||||
|
||||
nativeBuildInputs = [
|
||||
jq
|
||||
nodejs_22
|
||||
|
||||
Reference in New Issue
Block a user