Skip to content

Commit

Permalink
Merge pull request #173320 from centromere/lightwalletd-0.4.10
Browse files Browse the repository at this point in the history
lightwalletd: 0.4.9 -> 0.4.10
  • Loading branch information
Artturin committed May 17, 2022
2 parents 9f36ebc + 28c3b33 commit 992d767
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions pkgs/applications/blockchains/lightwalletd/default.nix
Original file line number Diff line number Diff line change
@@ -1,37 +1,43 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, lib, lightwalletd, testers }:

buildGoModule rec {
pname = "lightwalletd";
version = "0.4.9";
version = "0.4.10";

src = fetchFromGitHub {
owner = "zcash";
repo = "lightwalletd";
rev = "v${version}";
sha256 = "sha256-IksA06V+mP7ZAXXFYLKLacxrDXeMXHAk5w4t7pmobq4=";
rev = "68789356fb1a75f62735a529b38389ef08ea7582";
sha256 = "sha256-7gZhr6YMarGdgoGjg+oD4nZ/SAJ5cnhEDKmA4YMqJTo=";
};

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.GitCommit=${src.rev}"
"-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)
'';
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;
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}

0 comments on commit 992d767

Please sign in to comment.