nixpkgs/pkgs/applications/blockchains/lightwalletd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.2 KiB
Nix
Raw Normal View History

2022-05-16 22:24:23 +00:00
{ buildGoModule, fetchFromGitHub, lib, lightwalletd, testers }:
2021-07-05 17:44:28 +00:00
buildGoModule rec {
pname = "lightwalletd";
2023-08-24 17:59:32 +00:00
version = "0.4.16";
2021-07-05 17:44:28 +00:00
src = fetchFromGitHub {
owner = "zcash";
repo = "lightwalletd";
2023-06-28 06:24:39 +00:00
rev = "v${version}";
2023-08-24 17:59:32 +00:00
hash = "sha256-M9xfV2T8L+nssrJj29QmPiErNMpfpT8BY/30Vj8wPjY=";
2021-07-05 17:44:28 +00:00
};
2023-07-14 12:43:10 +00:00
vendorHash = "sha256-z5Hs+CkPswWhz+Ya5MyHKA3MZzQkvS7WOxNckElkg6U=";
2021-07-05 17:44:28 +00:00
ldflags = [
"-s" "-w"
"-X github.com/zcash/lightwalletd/common.Version=v${version}"
2022-05-16 22:24:23 +00:00
"-X github.com/zcash/lightwalletd/common.GitCommit=${src.rev}"
2021-07-05 17:44:28 +00:00
"-X github.com/zcash/lightwalletd/common.BuildDate=1970-01-01"
"-X github.com/zcash/lightwalletd/common.BuildUser=nixbld"
];
2022-05-16 22:24:23 +00:00
excludedPackages = [
"genblocks"
"testclient"
"zap"
];
passthru.tests.version = testers.testVersion {
package = lightwalletd;
command = "lightwalletd version";
version = "v${lightwalletd.version}";
};
2021-07-05 17:44:28 +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;
2023-11-27 01:17:53 +00:00
mainProgram = "lightwalletd";
2021-07-05 17:44:28 +00:00
};
}