Merge pull request #173320 from centromere/lightwalletd-0.4.10

lightwalletd: 0.4.9 -> 0.4.10
main
Artturi 2 years ago committed by GitHub
commit 992d767bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 28
      pkgs/applications/blockchains/lightwalletd/default.nix

@ -1,14 +1,14 @@
{ buildGoModule, fetchFromGitHub, lib }: { buildGoModule, fetchFromGitHub, lib, lightwalletd, testers }:
buildGoModule rec { buildGoModule rec {
pname = "lightwalletd"; pname = "lightwalletd";
version = "0.4.9"; version = "0.4.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zcash"; owner = "zcash";
repo = "lightwalletd"; repo = "lightwalletd";
rev = "v${version}"; rev = "68789356fb1a75f62735a529b38389ef08ea7582";
sha256 = "sha256-IksA06V+mP7ZAXXFYLKLacxrDXeMXHAk5w4t7pmobq4="; sha256 = "sha256-7gZhr6YMarGdgoGjg+oD4nZ/SAJ5cnhEDKmA4YMqJTo=";
}; };
vendorSha256 = null; vendorSha256 = null;
@ -16,22 +16,28 @@ buildGoModule rec {
ldflags = [ ldflags = [
"-s" "-w" "-s" "-w"
"-X github.com/zcash/lightwalletd/common.Version=v${version}" "-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.BuildDate=1970-01-01"
"-X github.com/zcash/lightwalletd/common.BuildUser=nixbld" "-X github.com/zcash/lightwalletd/common.BuildUser=nixbld"
]; ];
postFixup = '' excludedPackages = [
shopt -s extglob "genblocks"
cd $out/bin "testclient"
rm !(lightwalletd) "zap"
''; ];
passthru.tests.version = testers.testVersion {
package = lightwalletd;
command = "lightwalletd version";
version = "v${lightwalletd.version}";
};
meta = with lib; { meta = with lib; {
description = "A backend service that provides a bandwidth-efficient interface to the Zcash blockchain"; description = "A backend service that provides a bandwidth-efficient interface to the Zcash blockchain";
homepage = "https://github.com/zcash/lightwalletd"; homepage = "https://github.com/zcash/lightwalletd";
maintainers = with maintainers; [ centromere ]; maintainers = with maintainers; [ centromere ];
license = licenses.mit; license = licenses.mit;
platforms = platforms.linux; platforms = platforms.linux ++ platforms.darwin;
}; };
} }

Loading…
Cancel
Save