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

30 lines
808 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2019-08-08 11:44:15 +01:00
buildGoModule rec {
pname = "tendermint";
2021-02-18 17:05:22 +00:00
version = "0.34.7";
2019-08-08 11:44:15 +01:00
src = fetchFromGitHub {
owner = "tendermint";
repo = pname;
2019-09-16 22:34:10 +01:00
rev = "v${version}";
2021-02-18 17:05:22 +00:00
sha256 = "sha256-nucfxQYjUKm9c1vn7c4w0Mxkf+rU1qEZ1bjzcL258MQ=";
2019-08-08 11:44:15 +01:00
};
2021-02-14 08:19:11 +00:00
vendorSha256 = "sha256-0Y9QDBVNYE2x3nY3loRKTCtYWXRnK7v+drRVvTMY4Dg=";
2019-08-08 11:44:15 +01:00
doCheck = false;
2020-07-04 10:20:00 +01:00
subPackages = [ "cmd/tendermint" ];
buildFlagsArray = [ "-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";
2020-04-12 04:15:13 +01:00
homepage = "https://tendermint.com/";
2019-08-08 11:44:15 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ alexfmpe ];
platforms = platforms.linux ++ platforms.darwin;
};
2020-07-04 10:20:00 +01:00
}