mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
36 lines
762 B
Nix
36 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 ];
|
|
};
|
|
}
|