blob: 7eb473ad7791717808de22a3eb5a086c41645de5 (
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.2";
src = fetchFromGitHub {
owner = "mandiant";
repo = pname;
rev = "v${version}";
sha256 = "sha256-bZOq3GvGRyeIyN/CEuMA6mQjjrRvoVU9fUEUptd6NH0=";
};
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 ];
};
}
|