amass: 2.8.3 -> 2.8.5

This commit is contained in:
Wael M. Nasreddine 2018-11-20 12:51:26 -08:00 committed by Wael Nasreddine
parent 572b514582
commit e212b99751
2 changed files with 15 additions and 9 deletions

View file

@ -1,11 +1,12 @@
{ buildGoPackage { buildGoPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, lib , lib
}: }:
buildGoPackage rec { buildGoPackage rec {
name = "amass-${version}"; name = "amass-${version}";
version = "2.8.3"; version = "2.8.5";
goPackagePath = "github.com/OWASP/Amass"; goPackagePath = "github.com/OWASP/Amass";
@ -13,17 +14,19 @@ buildGoPackage rec {
owner = "OWASP"; owner = "OWASP";
repo = "Amass"; repo = "Amass";
rev = version; rev = version;
sha256 = "1pidi7bpg5z04l6ryfd7rqxshayvkqmgav0f6f1fxz4jwrmx9nnc"; sha256 = "1nsqg1p7hcv369d53n13xps3ks6fgzkkp6v9q87l04yj32nbr5qy";
}; };
# NOTE: this must be removed once amass > 2.8.3 is released. This version has outputs = [ "bin" "out" "wordlists" ];
# a broken import caused by the project migrating to a new home.
preBuild = ''
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"
'';
goDeps = ./deps.nix; goDeps = ./deps.nix;
postInstall = ''
mkdir -p $wordlists
cp -R $src/wordlists/*.txt $wordlists
gzip $wordlists/*.txt
'';
meta = with lib; { meta = with lib; {
description = "In-Depth DNS Enumeration and Network Mapping"; description = "In-Depth DNS Enumeration and Network Mapping";
longDescription = '' longDescription = ''
@ -33,6 +36,9 @@ buildGoPackage rec {
uses the IP addresses obtained during resolution to discover associated uses the IP addresses obtained during resolution to discover associated
netblocks and ASNs. All the information is then used to build maps of the netblocks and ASNs. All the information is then used to build maps of the
target networks. 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://www.owasp.org/index.php/OWASP_Amass_Project; homepage = https://www.owasp.org/index.php/OWASP_Amass_Project;
license = licenses.asl20; license = licenses.asl20;

View file

@ -94,8 +94,8 @@
fetch = { fetch = {
type = "git"; type = "git";
url = "https://go.googlesource.com/sys"; url = "https://go.googlesource.com/sys";
rev = "93218def8b18e66adbdab3eca8ec334700329f1f"; rev = "ec83556a53fe16b65c452a104ea9d1e86a671852";
sha256 = "0v0zdnsi0vw03dcfir7b228g02ag7jr7mgbgv6lnjwbbccxv07pz"; sha256 = "1ijlbyn5gs8g6z2pjlj5h77lg7wrljqxdls4xlcfqxmghxiyci2f";
}; };
} }
] ]