Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "kopia"; 5 version = "0.13.0"; 6 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-wQZzFrrxLzJ16TOrhxBlUuz+eCdqW/PmHUTuJP1Wy9Y="; 12 }; 13 14 vendorSha256 = "sha256-OeDgaO125y8eCQlm9Lv5RZlb1fNLTCplEQbpJ2KMVms="; 15 16 doCheck = false; 17 18 subPackages = [ "." ]; 19 20 ldflags = [ 21 "-X github.com/kopia/kopia/repo.BuildVersion=${version}" 22 "-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}" 23 ]; 24 25 meta = with lib; { 26 homepage = "https://kopia.io"; 27 description = "Cross-platform backup tool with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication"; 28 license = licenses.asl20; 29 maintainers = [ maintainers.bbigras ]; 30 }; 31}