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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
806 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-08-01 17:19:33 +00:00
buildGoModule rec {
2020-08-01 17:19:33 +00:00
pname = "kopia";
2023-10-22 10:24:41 +00:00
version = "0.15.0";
2020-08-01 17:19:33 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2023-10-22 10:24:41 +00:00
hash = "sha256-N6mntK1cHkdnIZhU67DOvlwv8XXWx602oD/Pj+NJo9Y=";
2020-08-01 17:19:33 +00:00
};
2023-10-22 10:24:41 +00:00
vendorHash = "sha256-eP/T4UzXBLOuK/f3BTz7dGqsSj7r/uTKKQ4H4lCvPC8=";
doCheck = false;
2020-08-01 17:19:33 +00:00
subPackages = [ "." ];
2021-08-26 06:45:51 +00:00
ldflags = [
"-X github.com/kopia/kopia/repo.BuildVersion=${version}"
"-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}"
];
2020-08-16 21:04:50 +00:00
2020-08-01 17:19:33 +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";
license = licenses.asl20;
maintainers = [ maintainers.bbigras ];
};
}