nixpkgs-suyu/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
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";
version = "0.12.1";
2020-08-01 19:19:33 +02:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-5zocfkNHsTFl3Sjwkr7dGnDY+4WO20F5AMgjfFulNd0=";
2020-08-01 19:19:33 +02:00
};
vendorSha256 = "sha256-Xmd4Q2X0cur4XGEjy1ysEEQkNqch4G+jGkPnrepgP6g=";
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 ];
};
}