Commit 99179cdd authored by Bruno Bigras's avatar Bruno Bigras
Browse files

kopia: add updateScript and testVersion

parent 0b6fa5ee
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, gitUpdater, testers, kopia }:

buildGoModule rec {
  pname = "kopia";
@@ -22,6 +22,15 @@ buildGoModule rec {
    "-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}"
  ];

  passthru = {
    updateScript = gitUpdater { rev-prefix = "v"; };
    tests = {
      kopia-version = testers.testVersion {
        package = kopia;
      };
    };
  };

  meta = with lib; {
    homepage = "https://kopia.io";
    description = "Cross-platform backup tool with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication";