5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
35 lines
762 B
Nix
35 lines
762 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, libpcap
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "optimism";
|
|
version = "1.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethereum-optimism";
|
|
repo = "optimism";
|
|
rev = "op-node/v${version}";
|
|
hash = "sha256-UDNqD3gA27qqaJYbpgOWoL0AeLb7OZRCRJcGNKRq67g=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
subPackages = [ "op-node/cmd" "op-proposer/cmd" "op-batcher/cmd" ];
|
|
|
|
vendorHash = "sha256-OGOdU6X3dcAu4BDpG62bK8LaMo+NuzFOUSjdPNhRGZM=";
|
|
|
|
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 ];
|
|
};
|
|
}
|