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

32 lines
816 B
Nix
Raw Normal View History

{ lib, buildGo117Module, fetchFromGitHub }:
2020-08-01 17:19:33 +00:00
buildGo117Module rec {
2020-08-01 17:19:33 +00:00
pname = "kopia";
2022-02-03 15:57:05 +00:00
version = "0.10.4";
2020-08-01 17:19:33 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2022-02-03 15:57:05 +00:00
sha256 = "sha256-L6aAcIGNNts4rsJNCmuKSFtBWe/VUzhwiNmlpKCZ+B4=";
2020-08-01 17:19:33 +00:00
};
2022-02-03 15:57:05 +00:00
vendorSha256 = "sha256-jswXHGjDnH3dVjpvdbr/sMYyWmGvTAZB77oKBMkBsnI=";
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 ];
};
}