2022-02-10 20:34:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildGoModule rec {
|
2020-08-20 17:08:02 +00:00
|
|
|
pname = "kopia";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.17.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Bqy9eFUvUgSdyChzh52qqPVvMi+3ad01koxVgnibbLk=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-/NMp64JeCQjCcEYkE6lYzu/E+irTcwkmDCJhB04ALFY=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X github.com/kopia/kopia/repo.BuildVersion=${version}"
|
|
|
|
"-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}"
|
|
|
|
];
|
2020-08-20 17:08:02 +00: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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "kopia";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.bbigras ];
|
|
|
|
};
|
|
|
|
}
|