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