mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 02:03:21 +00:00
glance: add nixosTests
This commit is contained in:
parent
00e9e54702
commit
4e15a4c5a0
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user