nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule {
8 pname = "evmdis";
9 version = "0-unstable-2022-05-09";
10
11 src = fetchFromGitHub {
12 owner = "Arachnid";
13 repo = "evmdis";
14 rev = "7fad4fbee443262839ce9f88111b417801163086";
15 hash = "sha256-jfbjXoGT8RtwLlqX13kcKdiFlhrVwA7Ems6abGJVRbA=";
16 };
17
18 vendorHash = null;
19
20 preBuild = ''
21 go mod init github.com/Arachnid/evmdis
22 '';
23
24 ldflags = [ "-s" ];
25
26 meta = with lib; {
27 homepage = "https://github.com/Arachnid/evmdis";
28 description = "Ethereum EVM disassembler";
29 mainProgram = "evmdis";
30 license = [ licenses.asl20 ];
31 maintainers = with maintainers; [ asymmetric ];
32 };
33}