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