From 3d7c3425c9150b86edb3d547836690fd574c3933 Mon Sep 17 00:00:00 2001 From: "Braian A. Diez" Date: Fri, 5 Sep 2025 15:44:30 -0300 Subject: [PATCH] amass: 4.2.0 -> 5.0.1, fix build issues --- pkgs/by-name/am/amass/package.nix | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/pkgs/by-name/am/amass/package.nix b/pkgs/by-name/am/amass/package.nix index 79b8444fa112..ccf26c2cbabe 100644 --- a/pkgs/by-name/am/amass/package.nix +++ b/pkgs/by-name/am/amass/package.nix @@ -2,31 +2,24 @@ lib, buildGoModule, fetchFromGitHub, + pkg-config, + libpostalWithData, }: - buildGoModule rec { pname = "amass"; - version = "4.2.0"; + version = "5.0.1"; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libpostalWithData ]; src = fetchFromGitHub { owner = "OWASP"; repo = "Amass"; tag = "v${version}"; - hash = "sha256-lhvU2fUnjQ+D+EZDRircNg/np4Ynk+HzOBgxT1L8BaQ="; + hash = "sha256-uAuBWzEwppnmYacfPI7MZUW+7PdSs3EqYm1WQI4fthQ="; }; - vendorHash = "sha256-PdFIWK4yBh8Bb9mzYdU2h7pDPK8FZMhu8meTd9snP48="; - - outputs = [ - "out" - "wordlists" - ]; - - postInstall = '' - mkdir -p $wordlists - cp -R examples/wordlists/*.txt $wordlists - gzip $wordlists/*.txt - ''; + vendorHash = "sha256-/AowoZfOk2tib996oC2hsMnzbe/CVbCBesTWXp6xE6Y="; # https://github.com/OWASP/Amass/issues/640 doCheck = false; @@ -40,9 +33,6 @@ buildGoModule rec { uses the IP addresses obtained during resolution to discover associated netblocks and ASNs. All the information is then used to build maps of the target networks. - - Amass ships with a set of wordlist (to be used with the amass -w flag) - that are found under the wordlists output. ''; homepage = "https://owasp.org/www-project-amass/"; changelog = "https://github.com/OWASP/Amass/releases/tag/v${version}";