mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
51 lines
1001 B
Nix
51 lines
1001 B
Nix
{ stdenv
|
|
, lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, libobjc
|
|
, IOKit
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "op-geth";
|
|
version = "1.101305.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethereum-optimism";
|
|
repo = "op-geth";
|
|
rev = "v${version}";
|
|
hash = "sha256-6Q36iTqYEY1sXt7K8UR8YFT/wvjzz+NzzpM5WgfhxFg=";
|
|
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"
|
|
];
|
|
|
|
vendorHash = "sha256-lTkbdzRuWqgFl/8N0v9jH8+pVM2k87a/cQF22DqiAIE=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|