mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
32 lines
820 B
Nix
32 lines
820 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "tendermint";
|
|
version = "0.34.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tendermint";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-CBE0ErHIafJ9OYC8DR3KriYX1aiqKUJk2UoBkIdO1QY=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-cW3YKdF1dAfeewQ/0mhoillIpIMuC2KDsW1XWc7WRoI=";
|
|
|
|
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;
|
|
};
|
|
}
|