9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ buildGoModule, fetchFromGitHub, lib, lightwalletd, testers }:
|
|
|
|
buildGoModule rec {
|
|
pname = "lightwalletd";
|
|
version = "0.4.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zcash";
|
|
repo = "lightwalletd";
|
|
rev = "v${version}";
|
|
hash = "sha256-tkM9uTmobKXD7Il/uvmLLckPgdkmgwsNsjlARJQiY5A=";
|
|
};
|
|
|
|
vendorHash = "sha256-z5Hs+CkPswWhz+Ya5MyHKA3MZzQkvS7WOxNckElkg6U=";
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
"-X github.com/zcash/lightwalletd/common.Version=v${version}"
|
|
"-X github.com/zcash/lightwalletd/common.GitCommit=${src.rev}"
|
|
"-X github.com/zcash/lightwalletd/common.BuildDate=1970-01-01"
|
|
"-X github.com/zcash/lightwalletd/common.BuildUser=nixbld"
|
|
];
|
|
|
|
excludedPackages = [
|
|
"genblocks"
|
|
"testclient"
|
|
"zap"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = lightwalletd;
|
|
command = "lightwalletd version";
|
|
version = "v${lightwalletd.version}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A backend service that provides a bandwidth-efficient interface to the Zcash blockchain";
|
|
homepage = "https://github.com/zcash/lightwalletd";
|
|
maintainers = with maintainers; [ centromere ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|