nixpkgs/pkgs/tools/networking/tendermint/default.nix

30 lines
821 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, buildGoModule }:
2019-08-08 12:44:15 +02:00
buildGoModule rec {
pname = "tendermint";
2020-08-12 23:08:57 +02:00
version = "0.33.8";
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}";
2020-08-12 23:08:57 +02:00
sha256 = "1dcr60gmbkb6833n49mjmlr082ahlv7alaqycl8g3d4f93kdm5c3";
2019-08-08 12:44:15 +02:00
};
2020-06-09 05:01:24 +02:00
vendorSha256 = "0i0n89lal99fqnzva51kp9f7wzqsfmncpshwxhq26kvykp7ji7sw";
2019-08-08 12:44:15 +02:00
doCheck = false;
2020-07-04 11:20:00 +02:00
subPackages = [ "cmd/tendermint" ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/tendermint/tendermint/version.GitCommit=${src.rev}" ];
2019-08-08 12:44:15 +02:00
meta = with stdenv.lib; {
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
}