mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
32 lines
810 B
Nix
32 lines
810 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kopia";
|
|
version = "0.10.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-f1wJuQGwDQAGPYRacvrMs4uSiUdaMCXkRnZYhkA3/JI=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-iBBESP7yR+tFYgQ1saIhpw8R2kiVVvUeA0mhgTxyhAE=";
|
|
|
|
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 ];
|
|
};
|
|
}
|