mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

This reverts commit65a333600d
. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
libobjc,
|
|
IOKit,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "op-geth";
|
|
version = "1.101305.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethereum-optimism";
|
|
repo = "op-geth";
|
|
rev = "v${version}";
|
|
hash = "sha256-AKVwwvt77FZlm7089EeayYVRYLo7c3v6LFVpsQN68Zk=";
|
|
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-pcIydpKWZt3vwShwzGlPKGq+disdxYFOB8gxHou3mVU=";
|
|
|
|
# Fix for usb-related segmentation faults on darwin
|
|
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.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 ];
|
|
};
|
|
}
|