My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/networking/tendermint/default.nix

31 lines
819 B

{ 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;
};
}