blob: e6a964fa663d6a7d36c42ba2709ec7234a6d8792 (
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
30
31
32
33
34
35
36
37
38
39
40
|
{ lib
, fetchFromGitHub
, buildGoModule
, unzip
}:
buildGoModule rec {
pname = "goresym";
version = "2.7.3";
src = fetchFromGitHub {
owner = "mandiant";
repo = pname;
rev = "v${version}";
sha256 = "sha256-U3AjEKQKPS5ghrmEJTsGRIC2BoPYAWL6RDPhA+eN2hg=";
};
subPackages = [ "." ];
vendorHash = "sha256-pjkBrHhIqLmSzwi1dKS5+aJrrAAIzNATOt3LgLsMtx0=";
nativeCheckInputs = [ unzip ];
preCheck = ''
cd test
unzip weirdbins.zip
cd ..
'';
doCheck = true;
meta = with lib; {
description = "Go symbol recovery tool";
mainProgram = "GoReSym";
homepage = "https://github.com/mandiant/GoReSym";
changelog = "https://github.com/mandiant/GoReSym/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ thehedgeh0g ];
};
}
|