Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / blockchains / lightwalletd / default.nix
blob040d08e752b6eb09e752f36ed641b670c051a06c
1 { buildGoModule, fetchFromGitHub, lib, lightwalletd, testers }:
3 buildGoModule rec {
4   pname = "lightwalletd";
5   version = "0.4.16";
7   src = fetchFromGitHub {
8     owner = "zcash";
9     repo  = "lightwalletd";
10     rev = "v${version}";
11     hash = "sha256-M9xfV2T8L+nssrJj29QmPiErNMpfpT8BY/30Vj8wPjY=";
12   };
14   vendorHash = "sha256-z5Hs+CkPswWhz+Ya5MyHKA3MZzQkvS7WOxNckElkg6U=";
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   ];
24   excludedPackages = [
25     "genblocks"
26     "testclient"
27     "zap"
28   ];
30   passthru.tests.version = testers.testVersion {
31     package = lightwalletd;
32     command = "lightwalletd version";
33     version = "v${lightwalletd.version}";
34   };
36   meta = with lib; {
37     description = "A 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   };