3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/tendermint/default.nix
2021-02-25 14:20:59 +00:00

32 lines
827 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "tendermint";
version = "0.34.8";
src = fetchFromGitHub {
owner = "tendermint";
repo = pname;
rev = "v${version}";
sha256 = "sha256:03k44w23167az2kk6ccp3139kykzkhack4w2vy0wvs2lb67xiqd9";
};
vendorSha256 = "sha256-0Y9QDBVNYE2x3nY3loRKTCtYWXRnK7v+drRVvTMY4Dg=";
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;
};
}