glance: add nixosTests

This commit is contained in:
Pol Dellaiera 2024-07-01 09:34:00 +02:00
parent 00e9e54702
commit 4e15a4c5a0
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -3,6 +3,7 @@
buildGoModule,
fetchFromGitHub,
nix-update-script,
nixosTests,
}:
buildGoModule rec {
@ -11,7 +12,7 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "glanceapp";
repo = pname;
repo = "glance";
rev = "v${version}";
hash = "sha256-37DmLZ8ESJwB2R8o5WjeypKsCQwarF3x8UYz1OQT/tM=";
};
@ -20,14 +21,19 @@ buildGoModule rec {
excludedPackages = [ "scripts/build-and-ship" ];
passthru.updateScript = nix-update-script { };
passthru = {
updateScript = nix-update-script { };
tests = {
service = nixosTests.glance;
};
};
meta = with lib; {
meta = {
homepage = "https://github.com/glanceapp/glance";
changelog = "https://github.com/glanceapp/glance/releases/tag/v${version}";
description = "Self-hosted dashboard that puts all your feeds in one place";
mainProgram = "glance";
license = licenses.agpl3Only;
maintainers = with maintainers; [ dvn0 ];
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ dvn0 ];
};
}