kopia: add updateScript and testVersion (#336949)

This commit is contained in:
Aleksana 2024-10-31 17:27:35 +08:00 committed by GitHub
commit 50b81c674e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub, gitUpdater, testers, kopia }:
buildGoModule rec { buildGoModule rec {
pname = "kopia"; pname = "kopia";
@ -22,6 +22,15 @@ buildGoModule rec {
"-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}" "-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; { meta = with lib; {
homepage = "https://kopia.io"; homepage = "https://kopia.io";
description = "Cross-platform backup tool with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication"; description = "Cross-platform backup tool with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication";