2021-07-05 18:44:28 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "lightwalletd";
|
2021-11-03 12:22:25 +00:00
|
|
|
version = "0.4.8";
|
2021-07-05 18:44:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zcash";
|
|
|
|
repo = "lightwalletd";
|
|
|
|
rev = "v${version}";
|
2021-11-03 12:22:25 +00:00
|
|
|
sha256 = "sha256-3cjXQXJqdmAMc+APybAKbpBhTy8Pk/QyBygSa8pGGAs=";
|
2021-07-05 18:44:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X github.com/zcash/lightwalletd/common.Version=v${version}"
|
|
|
|
"-X github.com/zcash/lightwalletd/common.GitCommit=v${version}"
|
|
|
|
"-X github.com/zcash/lightwalletd/common.BuildDate=1970-01-01"
|
|
|
|
"-X github.com/zcash/lightwalletd/common.BuildUser=nixbld"
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
shopt -s extglob
|
|
|
|
cd $out/bin
|
|
|
|
rm !(lightwalletd)
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|