diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index ea773a2db227..785a5621f57e 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -228,6 +228,7 @@ in { fluentd = handleTest ./fluentd.nix {}; fluidd = handleTest ./fluidd.nix {}; fontconfig-default-fonts = handleTest ./fontconfig-default-fonts.nix {}; + forgejo = handleTest ./gitea.nix { giteaPackage = pkgs.forgejo; }; freenet = handleTest ./freenet.nix {}; freeswitch = handleTest ./freeswitch.nix {}; freshrss-sqlite = handleTest ./freshrss-sqlite.nix {}; diff --git a/pkgs/applications/version-management/forgejo/default.nix b/pkgs/applications/version-management/forgejo/default.nix index 2006c5efeea0..f6e34830316b 100644 --- a/pkgs/applications/version-management/forgejo/default.nix +++ b/pkgs/applications/version-management/forgejo/default.nix @@ -10,6 +10,7 @@ , lib , makeWrapper , nix +, nixosTests , openssh , pam , pamSupport ? true @@ -65,6 +66,8 @@ buildGoModule rec { --prefix PATH : ${lib.makeBinPath [ bash git gzip openssh ]} ''; + passthru.tests = nixosTests.forgejo; + passthru.updateScript = lib.getExe (writeShellApplication { name = "update-forgejo"; runtimeInputs = [