Skip to content

Commit

Permalink
kopia: add updateScript and testVersion (#336949)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 31, 2024
2 parents de19a7d + 99179cd commit 50b81c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/tools/backup/kopia/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, gitUpdater, testers, kopia }:

buildGoModule rec {
pname = "kopia";
Expand All @@ -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";
Expand Down

0 comments on commit 50b81c6

Please sign in to comment.