Unverified Commit 4e15a4c5 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

glance: add nixosTests

parent 00e9e547
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -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 ];
  };
}