2023-08-10 07:59:29 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libobjc
|
|
|
|
, IOKit
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "op-geth";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.101200.1";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ethereum-optimism";
|
|
|
|
repo = "op-geth";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-xF/KaN/O0Hn3W2a11ivdgLVr5gR14dW5807r1snQ9xw=";
|
2023-08-10 07:59:29 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/abidump"
|
|
|
|
"cmd/abigen"
|
|
|
|
"cmd/bootnode"
|
|
|
|
"cmd/clef"
|
|
|
|
"cmd/devp2p"
|
|
|
|
"cmd/ethkey"
|
|
|
|
"cmd/evm"
|
|
|
|
"cmd/faucet"
|
|
|
|
"cmd/geth"
|
|
|
|
"cmd/p2psim"
|
|
|
|
"cmd/rlpdump"
|
|
|
|
"cmd/utils"
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-5G0wPQaP2MofQQO1AiFa1BF8zarRnYyNYscbZ4Ku44o=";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
# Fix for usb-related segmentation faults on darwin
|
|
|
|
propagatedBuildInputs =
|
|
|
|
lib.optionals stdenv.isDarwin [ libobjc IOKit ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "";
|
|
|
|
homepage = "https://github.com/ethereum-optimism/op-geth";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|