1{ buildGoModule, fetchFromGitHub, lib, lightwalletd, testers }:
2
3buildGoModule rec {
4 pname = "lightwalletd";
5 version = "0.4.10";
6
7 src = fetchFromGitHub {
8 owner = "zcash";
9 repo = "lightwalletd";
10 rev = "68789356fb1a75f62735a529b38389ef08ea7582";
11 sha256 = "sha256-7gZhr6YMarGdgoGjg+oD4nZ/SAJ5cnhEDKmA4YMqJTo=";
12 };
13
14 vendorSha256 = null;
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 = "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 platforms = platforms.linux ++ platforms.darwin;
42 };
43}