depot/third_party/nixpkgs/pkgs/development/tools/goresym/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

40 lines
813 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, unzip
}:
buildGoModule rec {
pname = "goresym";
version = "2.7.4";
src = fetchFromGitHub {
owner = "mandiant";
repo = pname;
rev = "v${version}";
sha256 = "sha256-qFDacInIiV1thuYMjyzTG7ru5bkd2Af1iao7Oes1mRg=";
};
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; [ pyrox0 ];
};
}