nixpkgs-suyu/pkgs/tools/networking/tendermint/default.nix
2021-08-22 06:20:52 +00:00

31 lines
820 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "tendermint";
version = "0.34.12";
src = fetchFromGitHub {
owner = "tendermint";
repo = pname;
rev = "v${version}";
sha256 = "sha256-CBE0ErHIafJ9OYC8DR3KriYX1aiqKUJk2UoBkIdO1QY=";
};
vendorSha256 = "sha256-cW3YKdF1dAfeewQ/0mhoillIpIMuC2KDsW1XWc7WRoI=";
subPackages = [ "cmd/tendermint" ];
preBuild = ''
makeFlagsArray+=(
"-ldflags=-s -w -X github.com/tendermint/tendermint/version.GitCommit=${src.rev}"
)
'';
meta = with lib; {
description = "Byzantine-Fault Tolerant State Machines. Or Blockchain, for short";
homepage = "https://tendermint.com/";
license = licenses.asl20;
maintainers = with maintainers; [ alexfmpe ];
platforms = platforms.linux ++ platforms.darwin;
};
}