32 lines
819 B
Nix
32 lines
819 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "tendermint";
|
|
version = "0.35.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tendermint";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-QCCDZ0zsAqV7tvlBeyTpN5iz/jBc50oBgrmUB/R5wCY=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-h4sNfV8B+WGgfVPDmWVNek7fQo5qZ3+VGkx4VSw4QF8=";
|
|
|
|
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;
|
|
};
|
|
}
|