2022-02-04 13:16:47 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-08-01 19:19:33 +02:00
|
|
|
|
2022-02-04 13:16:47 +01:00
|
|
|
buildGoModule rec {
|
2020-08-01 19:19:33 +02:00
|
|
|
pname = "kopia";
|
2022-10-02 01:51:55 +02:00
|
|
|
version = "0.12.1";
|
2020-08-01 19:19:33 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-02 01:51:55 +02:00
|
|
|
sha256 = "sha256-5zocfkNHsTFl3Sjwkr7dGnDY+4WO20F5AMgjfFulNd0=";
|
2020-08-01 19:19:33 +02:00
|
|
|
};
|
|
|
|
|
2022-10-02 01:51:55 +02:00
|
|
|
vendorSha256 = "sha256-Xmd4Q2X0cur4XGEjy1ysEEQkNqch4G+jGkPnrepgP6g=";
|
2020-08-04 02:26:27 +02:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-08-01 19:19:33 +02:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [
|
|
|
|
"-X github.com/kopia/kopia/repo.BuildVersion=${version}"
|
|
|
|
"-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}"
|
|
|
|
];
|
2020-08-16 23:04:50 +02:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|