2022-05-18 14:49:53 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, lightwalletd, testers }:
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "lightwalletd";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.4.15";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zcash";
|
|
|
|
repo = "lightwalletd";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-tkM9uTmobKXD7Il/uvmLLckPgdkmgwsNsjlARJQiY5A=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-z5Hs+CkPswWhz+Ya5MyHKA3MZzQkvS7WOxNckElkg6U=";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X github.com/zcash/lightwalletd/common.Version=v${version}"
|
2022-05-18 14:49:53 +00:00
|
|
|
"-X github.com/zcash/lightwalletd/common.GitCommit=${src.rev}"
|
2021-07-14 22:03:04 +00:00
|
|
|
"-X github.com/zcash/lightwalletd/common.BuildDate=1970-01-01"
|
|
|
|
"-X github.com/zcash/lightwalletd/common.BuildUser=nixbld"
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
excludedPackages = [
|
|
|
|
"genblocks"
|
|
|
|
"testclient"
|
|
|
|
"zap"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = lightwalletd;
|
|
|
|
command = "lightwalletd version";
|
|
|
|
version = "v${lightwalletd.version}";
|
|
|
|
};
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|