2023-02-02 18:25:31 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildGoModule {
|
|
|
|
pname = "evmdis";
|
|
|
|
version = "unstable-2022-05-09";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Arachnid";
|
|
|
|
repo = "evmdis";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "7fad4fbee443262839ce9f88111b417801163086";
|
|
|
|
hash = "sha256-jfbjXoGT8RtwLlqX13kcKdiFlhrVwA7Ems6abGJVRbA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
vendorHash = null;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
# Add go modules support
|
|
|
|
cp ${./go.mod} go.mod
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Arachnid/evmdis";
|
|
|
|
description = "Ethereum EVM disassembler";
|
|
|
|
license = [ licenses.asl20 ];
|
|
|
|
maintainers = with maintainers; [ asymmetric ];
|
|
|
|
};
|
|
|
|
}
|