nixpkgs-suyu/pkgs/tools/backup/kopia/default.nix

32 lines
810 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-08-01 19:19:33 +02:00
buildGoModule rec {
2020-08-01 19:19:33 +02:00
pname = "kopia";
2022-02-12 19:38:43 +01:00
version = "0.10.5";
2020-08-01 19:19:33 +02:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2022-02-12 19:38:43 +01:00
sha256 = "sha256-9H57NlvyEEOX2F3ooWWqDAo7MnS9J+XrYv/cIyNo6+Y=";
2020-08-01 19:19:33 +02:00
};
2022-02-12 19:38:43 +01:00
vendorSha256 = "sha256-c8WohMyaOicPq2q+DkgNBBulMEJCZFNFe+xECUEpelI=";
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 ];
};
}