depot/third_party/nixpkgs/pkgs/applications/blockchains/optimism/default.nix

37 lines
787 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
, libpcap
}:
buildGoModule rec {
pname = "optimism";
version = "1.7.6";
src = fetchFromGitHub {
owner = "ethereum-optimism";
repo = "optimism";
rev = "op-node/v${version}";
hash = "sha256-LpkmNJqPe73qbTNvqxlDDTh9hD/H39ll3Rn2NEFEcg8=";
fetchSubmodules = true;
};
subPackages = [ "op-node/cmd" "op-proposer/cmd" "op-batcher/cmd" ];
vendorHash = "sha256-2eVwGWw/z6ct3PA8fC0rBwkNaICd20llVE/9essF95Q=";
buildInputs = [
libpcap
];
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Optimism is Ethereum, scaled";
homepage = "https://github.com/ethereum-optimism/optimism";
license = licenses.mit;
maintainers = with maintainers; [ happysalada ];
mainProgram = "cmd";
};
}