2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, unzip
|
|
|
|
}:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "goresym";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.7.4";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mandiant";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-qFDacInIiV1thuYMjyzTG7ru5bkd2Af1iao7Oes1mRg=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-pjkBrHhIqLmSzwi1dKS5+aJrrAAIzNATOt3LgLsMtx0=";
|
|
|
|
|
|
|
|
nativeCheckInputs = [ unzip ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
cd test
|
|
|
|
unzip weirdbins.zip
|
|
|
|
cd ..
|
|
|
|
'';
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Go symbol recovery tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "GoReSym";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/mandiant/GoReSym";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/mandiant/GoReSym/releases/tag/v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ pyrox0 ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|