base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / ea / easyeasm / package.nix
blobfc15fe0ab84066e3f320f08b6a626088396cf398
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , makeWrapper
5 , amass
6 , alterx
7 , oam-tools
8 , subfinder
9 }:
11 buildGoModule rec {
12   pname = "easyeasm";
13   version = "1.0.6";
15   src = fetchFromGitHub {
16     owner = "g0ldencybersec";
17     repo = "EasyEASM";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-/PhoH+5k63rJL1N3V3IL1TP1oacsBfGfVw/OueN9j8M=";
20   };
22   vendorHash = "sha256-g+yaVIx4jxpAQ/+WrGKxhVeliYx7nLQe/zsGpxV4Fn4=";
24   nativeBuildInputs = [
25     makeWrapper
26   ];
28   ldflags = [
29     "-s"
30     "-w"
31   ];
33   postFixup = ''
34     wrapProgram $out/bin/easyeasm \
35       --prefix PATH : "${lib.makeBinPath [
36         amass
37         alterx
38         oam-tools
39         subfinder
40       ]}"
41   '';
43   meta = with lib; {
44     description = "Attack surface management tool";
45     homepage = "https://github.com/g0ldencybersec/EasyEASM";
46     changelog = "https://github.com/g0ldencybersec/EasyEASM/releases/tag/v${version}";
47     license = licenses.mit;
48     maintainers = with maintainers; [ fab ];
49     mainProgram = "easyeasm";
50   };