2021-04-30 00:42:42 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-08-01 19:19:33 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kopia";
|
2021-04-30 00:42:42 +02:00
|
|
|
version = "0.8.4";
|
2020-08-01 19:19:33 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-30 00:42:42 +02:00
|
|
|
sha256 = "sha256-Or6RL6yT/X3rVIySqt5lWbXbI25f8HNLBpY3cOhMC0g=";
|
2020-08-01 19:19:33 +02:00
|
|
|
};
|
|
|
|
|
2021-04-30 00:42:42 +02:00
|
|
|
vendorSha256 = "sha256-1FK5IIvm2iyzGqj8IPL3/qvxFj0dC37aycQQ5MO0mBI=";
|
2020-08-04 02:26:27 +02:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-08-01 19:19:33 +02:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2020-08-16 23:04:50 +02:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X github.com/kopia/kopia/repo.BuildVersion=${version}
|
|
|
|
-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}
|
|
|
|
'';
|
|
|
|
|
2020-08-01 19:19:33 +02:00
|
|
|
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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.bbigras ];
|
|
|
|
};
|
|
|
|
}
|