nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, fetchFromGitHub
3, buildGoModule
4, unzip
5}:
6
7buildGoModule rec {
8 pname = "goresym";
9 version = "2.7.4";
10
11 src = fetchFromGitHub {
12 owner = "mandiant";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "sha256-qFDacInIiV1thuYMjyzTG7ru5bkd2Af1iao7Oes1mRg=";
16 };
17
18 subPackages = [ "." ];
19
20 vendorHash = "sha256-pjkBrHhIqLmSzwi1dKS5+aJrrAAIzNATOt3LgLsMtx0=";
21
22 nativeCheckInputs = [ unzip ];
23
24 preCheck = ''
25 cd test
26 unzip weirdbins.zip
27 cd ..
28 '';
29
30 doCheck = true;
31
32 meta = with lib; {
33 description = "Go symbol recovery tool";
34 mainProgram = "GoReSym";
35 homepage = "https://github.com/mandiant/GoReSym";
36 changelog = "https://github.com/mandiant/GoReSym/releases/tag/v${version}";
37 license = licenses.mit;
38 maintainers = with maintainers; [ pyrox0 ];
39 };
40}