2023-08-10 07:59:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libpcap
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "optimism";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.7.7";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ethereum-optimism";
|
|
|
|
repo = "optimism";
|
|
|
|
rev = "op-node/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-KN6Y8YhYGNGg/t4t599RAo6mF7Wn7GaSnrLEk3WLekc=";
|
2023-08-10 07:59:29 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "op-node/cmd" "op-proposer/cmd" "op-batcher/cmd" ];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-MWGjRj5SMFi3O86l3Gc/oavzWd1TtoKr53eEXbCOamQ=";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "cmd";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
}
|