about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/analysis/evmdis/default.nix
blob: eb23a0aae51fb91fa60f2a75ad08482e49d7f743 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule {
  pname = "evmdis";
  version = "unstable-2022-05-09";

  src = fetchFromGitHub {
    owner = "Arachnid";
    repo = "evmdis";
    rev = "7fad4fbee443262839ce9f88111b417801163086";
    hash = "sha256-jfbjXoGT8RtwLlqX13kcKdiFlhrVwA7Ems6abGJVRbA=";
  };

  vendorHash = null;

  preBuild = ''
    # Add go modules support
    cp ${./go.mod} go.mod
  '';

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    homepage = "https://github.com/Arachnid/evmdis";
    description = "Ethereum EVM disassembler";
    license = [ licenses.asl20 ];
    maintainers = with maintainers; [ asymmetric ];
  };
}