2021-01-25 00:26:54 -08:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2019-08-08 03:44:15 -07:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tendermint";
|
2021-02-25 06:20:59 -08:00
|
|
|
version = "0.34.8";
|
2019-08-08 03:44:15 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tendermint";
|
|
|
|
repo = pname;
|
2019-09-16 14:34:10 -07:00
|
|
|
rev = "v${version}";
|
2021-02-25 06:20:59 -08:00
|
|
|
sha256 = "sha256:03k44w23167az2kk6ccp3139kykzkhack4w2vy0wvs2lb67xiqd9";
|
2019-08-08 03:44:15 -07:00
|
|
|
};
|
|
|
|
|
2021-02-14 00:19:11 -08:00
|
|
|
vendorSha256 = "sha256-0Y9QDBVNYE2x3nY3loRKTCtYWXRnK7v+drRVvTMY4Dg=";
|
2019-08-08 03:44:15 -07:00
|
|
|
|
2020-07-04 02:20:00 -07:00
|
|
|
subPackages = [ "cmd/tendermint" ];
|
|
|
|
|
2021-02-25 06:20:59 -08:00
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(
|
|
|
|
"-ldflags=-s -w -X github.com/tendermint/tendermint/version.GitCommit=${src.rev}"
|
|
|
|
)
|
|
|
|
'';
|
2020-07-04 02:20:00 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-10-10 22:55:05 -07:00
|
|
|
description = "Byzantine-Fault Tolerant State Machines. Or Blockchain, for short";
|
2020-04-11 20:15:13 -07:00
|
|
|
homepage = "https://tendermint.com/";
|
2019-08-08 03:44:15 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ alexfmpe ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
2020-07-04 02:20:00 -07:00
|
|
|
}
|