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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
849 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2019-08-08 10:44:15 +00:00
buildGoModule rec {
pname = "tendermint";
2022-07-31 03:11:26 +00:00
version = "0.35.9";
2019-08-08 10:44:15 +00:00
src = fetchFromGitHub {
owner = "tendermint";
repo = pname;
2019-09-16 21:34:10 +00:00
rev = "v${version}";
2022-07-31 03:11:26 +00:00
sha256 = "sha256-3tggW+M3vZChDT1g77W5M3hchEN6pTSVvkrZda6ZTCY=";
2019-08-08 10:44:15 +00:00
};
vendorHash = "sha256-/enY0qERFzAIJNcuw1djRGoAcmtz7R5Ikvlts0f7rLc=";
2019-08-08 10:44:15 +00:00
2020-07-04 09:20:00 +00:00
subPackages = [ "cmd/tendermint" ];
2021-02-25 14:20:59 +00:00
preBuild = ''
makeFlagsArray+=(
"-ldflags=-s -w -X github.com/tendermint/tendermint/version.GitCommit=${src.rev}"
)
'';
2020-07-04 09:20:00 +00:00
meta = with lib; {
description = "Byzantine-Fault Tolerant State Machines. Or Blockchain, for short";
2020-04-12 03:15:13 +00:00
homepage = "https://tendermint.com/";
2019-08-08 10:44:15 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ alexfmpe ];
platforms = platforms.linux ++ platforms.darwin;
2024-02-11 02:19:15 +00:00
mainProgram = "tendermint";
2019-08-08 10:44:15 +00:00
};
2020-07-04 09:20:00 +00:00
}