mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
32 lines
810 B
Nix
32 lines
810 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kopia";
|
|
version = "0.12.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5zocfkNHsTFl3Sjwkr7dGnDY+4WO20F5AMgjfFulNd0=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-Xmd4Q2X0cur4XGEjy1ysEEQkNqch4G+jGkPnrepgP6g=";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "." ];
|
|
|
|
ldflags = [
|
|
"-X github.com/kopia/kopia/repo.BuildVersion=${version}"
|
|
"-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|