nixpkgs/pkgs/applications/blockchains/optimism/geth.nix

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

51 lines
1001 B
Nix
Raw Normal View History

2023-08-06 04:25:37 +00:00
{ stdenv
, lib
, buildGoModule
, fetchFromGitHub
, libobjc
, IOKit
}:
buildGoModule rec {
pname = "op-geth";
2024-02-02 09:15:23 +00:00
version = "1.101305.3";
2023-08-06 04:25:37 +00:00
src = fetchFromGitHub {
owner = "ethereum-optimism";
repo = "op-geth";
rev = "v${version}";
2024-02-02 09:15:23 +00:00
hash = "sha256-AKVwwvt77FZlm7089EeayYVRYLo7c3v6LFVpsQN68Zk=";
2023-08-06 04:25:37 +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"
];
2024-02-02 09:15:23 +00:00
vendorHash = "sha256-pcIydpKWZt3vwShwzGlPKGq+disdxYFOB8gxHou3mVU=";
2023-08-06 04:25:37 +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 ];
};
}