Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "coreth";
|
|
version = "0.15.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ava-labs";
|
|
repo = "coreth";
|
|
rev = "v${version}";
|
|
hash = "sha256-c2Z0rstaOTVsMmOJbHeYJ1rxFHOA/kUzj8k8z56APZ8=";
|
|
};
|
|
|
|
# go mod vendor has a bug, see: golang/go#57529
|
|
proxyVendor = true;
|
|
|
|
vendorHash = "sha256-V0IzZbJ1KfSSF/NL4a14mL+hwXF213HM5WJS3mmT4mQ=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/ava-labs/coreth/plugin/evm.Version=${version}"
|
|
"-X github.com/ava-labs/coreth/cmd/abigen.gitCommit=${version}"
|
|
"-X github.com/ava-labs/coreth/cmd/abigen.gitDate=1970-01-01"
|
|
];
|
|
|
|
subPackages = [
|
|
"cmd/abigen"
|
|
"plugin"
|
|
];
|
|
|
|
postInstall = "mv $out/bin/{plugin,evm}";
|
|
|
|
meta = {
|
|
description = "Code and wrapper to extract Ethereum blockchain functionalities without network/consensus, for building custom blockchain services";
|
|
homepage = "https://github.com/ava-labs/coreth";
|
|
changelog = "https://github.com/ava-labs/coreth/releases/tag/v${version}";
|
|
license = lib.licenses.lgpl3Only;
|
|
maintainers = with lib.maintainers; [ urandom ];
|
|
};
|
|
}
|