@@ -1,11 +1,12 @@
11{ buildGoPackage
22, fetchFromGitHub
3+, fetchpatch
34, lib
45}:
56
67buildGoPackage rec {
78 name = "amass-${version}";
8− version = "2.8.3";
9+ version = "2.8.5";
910
1011 goPackagePath = "github.com/OWASP/Amass";
1112
@@ -13,17 +14,19 @@ buildGoPackage rec {
1314 owner = "OWASP";
1415 repo = "Amass";
1516 rev = version;
16− sha256 = "1pidi7bpg5z04l6ryfd7rqxshayvkqmgav0f6f1fxz4jwrmx9nnc";
17+ sha256 = "1nsqg1p7hcv369d53n13xps3ks6fgzkkp6v9q87l04yj32nbr5qy";
1718 };
1819
19− # NOTE: this must be removed once amass > 2.8.3 is released. This version has
20− # a broken import caused by the project migrating to a new home.
21− preBuild = ''
22− sed -e 's:github.com/caffix/amass/amass/core:github.com/OWASP/Amass/amass/core:g' -i "go/src/${goPackagePath}/cmd/amass.netdomains/main.go"
23− '';
20+ outputs = [ "bin" "out" "wordlists" ];
2421
2522 goDeps = ./deps.nix;
2623
24+ postInstall = ''
25+ mkdir -p $wordlists
26+ cp -R $src/wordlists/*.txt $wordlists
27+ gzip $wordlists/*.txt
28+ '';
29+
2730 meta = with lib; {
2831 description = "In-Depth DNS Enumeration and Network Mapping";
2932 longDescription = ''
@@ -33,6 +36,9 @@ buildGoPackage rec {
3336 uses the IP addresses obtained during resolution to discover associated
3437 netblocks and ASNs. All the information is then used to build maps of the
3538 target networks.
39+
40+ Amass ships with a set of wordlist (to be used with the amass -w flag)
41+ that are found under the wordlists output.
3642 '';
3743 homepage = https://www.owasp.org/index.php/OWASP_Amass_Project;
3844 license = licenses.asl20;