2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tendermint";
|
2021-08-25 08:27:29 +00:00
|
|
|
version = "0.34.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tendermint";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-25 08:27:29 +00:00
|
|
|
sha256 = "sha256-CBE0ErHIafJ9OYC8DR3KriYX1aiqKUJk2UoBkIdO1QY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-25 08:27:29 +00:00
|
|
|
vendorSha256 = "sha256-cW3YKdF1dAfeewQ/0mhoillIpIMuC2KDsW1XWc7WRoI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
subPackages = [ "cmd/tendermint" ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(
|
|
|
|
"-ldflags=-s -w -X github.com/tendermint/tendermint/version.GitCommit=${src.rev}"
|
|
|
|
)
|
|
|
|
'';
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Byzantine-Fault Tolerant State Machines. Or Blockchain, for short";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://tendermint.com/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ alexfmpe ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
2020-07-18 16:06:22 +00:00
|
|
|
}
|