Merge pull request #298623 from mjoerg/goresym-2.7.2

goresym: 2.3 -> 2.7.2
This commit is contained in:
Pol Dellaiera 2024-03-25 11:04:02 +01:00 committed by GitHub
commit dfe38d1bbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,19 +1,31 @@
{ stdenv, lib, fetchFromGitHub, buildGoModule }:
{ lib
, fetchFromGitHub
, buildGoModule
, unzip
}:
buildGoModule rec {
pname = "goresym";
version = "2.3";
version = "2.7.2";
src = fetchFromGitHub {
owner = "mandiant";
repo = pname;
rev = "v${version}";
sha256 = "sha256-o2t542q6UGjWdhJkcAm34kGhPUGNsvZKf940T+vydoE=";
sha256 = "sha256-bZOq3GvGRyeIyN/CEuMA6mQjjrRvoVU9fUEUptd6NH0=";
};
subPackages = [ "." ];
vendorHash = "sha256-ElV5edbe1LQWbA1NKv52/rLZJeOLBahE4YBKg9OA7YY=";
vendorHash = "sha256-pjkBrHhIqLmSzwi1dKS5+aJrrAAIzNATOt3LgLsMtx0=";
nativeCheckInputs = [ unzip ];
preCheck = ''
cd test
unzip weirdbins.zip
cd ..
'';
doCheck = true;
@ -21,6 +33,7 @@ buildGoModule rec {
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 ];
};