mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 13:24:29 +00:00
kopia: add updateScript and testVersion (#336949)
This commit is contained in:
commit
50b81c674e
@ -1,4 +1,4 @@
|
||||
{ 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";
|
||||
|
Loading…
Reference in New Issue
Block a user