1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule {
4 pname = "evmdis";
5 version = "unstable-2022-05-09";
6
7 src = fetchFromGitHub {
8 owner = "Arachnid";
9 repo = "evmdis";
10 rev = "7fad4fbee443262839ce9f88111b417801163086";
11 hash = "sha256-jfbjXoGT8RtwLlqX13kcKdiFlhrVwA7Ems6abGJVRbA=";
12 };
13
14 vendorHash = null;
15
16 preBuild = ''
17 # Add go modules support
18 cp ${./go.mod} go.mod
19 '';
20
21 ldflags = [ "-s" "-w" ];
22
23 meta = with lib; {
24 homepage = "https://github.com/Arachnid/evmdis";
25 description = "Ethereum EVM disassembler";
26 license = [ licenses.asl20 ];
27 maintainers = with maintainers; [ asymmetric ];
28 };
29}