3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/kopia/default.nix

32 lines
809 B
Nix
Raw Normal View History

2021-04-29 23:42:42 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
2020-08-01 18:19:33 +01:00
buildGoModule rec {
pname = "kopia";
2021-11-21 08:01:07 +00:00
version = "0.9.6";
2020-08-01 18:19:33 +01:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2021-11-21 08:01:07 +00:00
sha256 = "sha256-lfzlYpkAGGY7fs9PYPSg2XYgW92WV1/zh2oRz4Qw7vs=";
2020-08-01 18:19:33 +01:00
};
2021-11-21 08:01:07 +00:00
vendorSha256 = "sha256-xa6B3gGgJc7E8VCfpRXlE8Jw3ylNnfynK+QEiqy2yF4=";
doCheck = false;
2020-08-01 18:19:33 +01:00
subPackages = [ "." ];
2021-08-26 07:45:51 +01:00
ldflags = [
"-X github.com/kopia/kopia/repo.BuildVersion=${version}"
"-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}"
];
2020-08-16 22:04:50 +01:00
2020-08-01 18:19:33 +01: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 ];
};
}