nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at fix-function-merge 43 lines 1.2 kB view raw
1{ buildGoModule, fetchFromGitHub, lib, lightwalletd, testers }: 2 3buildGoModule rec { 4 pname = "lightwalletd"; 5 version = "0.4.16"; 6 7 src = fetchFromGitHub { 8 owner = "zcash"; 9 repo = "lightwalletd"; 10 rev = "v${version}"; 11 hash = "sha256-M9xfV2T8L+nssrJj29QmPiErNMpfpT8BY/30Vj8wPjY="; 12 }; 13 14 vendorHash = "sha256-z5Hs+CkPswWhz+Ya5MyHKA3MZzQkvS7WOxNckElkg6U="; 15 16 ldflags = [ 17 "-s" "-w" 18 "-X github.com/zcash/lightwalletd/common.Version=v${version}" 19 "-X github.com/zcash/lightwalletd/common.GitCommit=${src.rev}" 20 "-X github.com/zcash/lightwalletd/common.BuildDate=1970-01-01" 21 "-X github.com/zcash/lightwalletd/common.BuildUser=nixbld" 22 ]; 23 24 excludedPackages = [ 25 "genblocks" 26 "testclient" 27 "zap" 28 ]; 29 30 passthru.tests.version = testers.testVersion { 31 package = lightwalletd; 32 command = "lightwalletd version"; 33 version = "v${lightwalletd.version}"; 34 }; 35 36 meta = with lib; { 37 description = "Backend service that provides a bandwidth-efficient interface to the Zcash blockchain"; 38 homepage = "https://github.com/zcash/lightwalletd"; 39 maintainers = with maintainers; [ centromere ]; 40 license = licenses.mit; 41 mainProgram = "lightwalletd"; 42 }; 43}