zgrab2: unstable-2023-03-23 -> 0.2.0 (#439061)

authored by pyrox.dev and committed by GitHub f72c06c9 3b0c41f8

+10 -63
-46
pkgs/by-name/zg/zgrab2/fix-go-version-error.patch
··· 1 - diff --git a/go.mod b/go.mod 2 - index 888f10e..5463ef5 100644 3 - --- a/go.mod 4 - +++ b/go.mod 5 - @@ -1,25 +1,33 @@ 6 - module github.com/zmap/zgrab2 7 - 8 - -go 1.12 9 - +go 1.17 10 - 11 - require ( 12 - - github.com/cespare/xxhash/v2 v2.2.0 // indirect 13 - - github.com/go-kit/kit v0.10.0 // indirect 14 - - github.com/golang/protobuf v1.5.3 // indirect 15 - github.com/hdm/jarm-go v0.0.7 16 - github.com/prometheus/client_golang v1.14.0 17 - - github.com/prometheus/common v0.42.0 // indirect 18 - - github.com/prometheus/procfs v0.9.0 // indirect 19 - github.com/sirupsen/logrus v1.9.0 20 - - github.com/zmap/rc2 v0.0.0-20190804163417-abaa70531248 // indirect 21 - github.com/zmap/zcrypto v0.0.0-20230310154051-c8b263fd8300 22 - github.com/zmap/zflags v1.4.0-beta.1.0.20200204220219-9d95409821b6 23 - golang.org/x/crypto v0.7.0 24 - golang.org/x/net v0.8.0 25 - golang.org/x/sys v0.6.0 26 - golang.org/x/text v0.8.0 27 - - google.golang.org/protobuf v1.30.0 // indirect 28 - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c 29 - gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22 30 - gopkg.in/yaml.v2 v2.4.0 31 - ) 32 - + 33 - +require ( 34 - + github.com/beorn7/perks v1.0.1 // indirect 35 - + github.com/cespare/xxhash/v2 v2.2.0 // indirect 36 - + github.com/golang/protobuf v1.5.3 // indirect 37 - + github.com/kr/pretty v0.2.1 // indirect 38 - + github.com/kr/text v0.1.0 // indirect 39 - + github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect 40 - + github.com/prometheus/client_model v0.3.0 // indirect 41 - + github.com/prometheus/common v0.42.0 // indirect 42 - + github.com/prometheus/procfs v0.9.0 // indirect 43 - + github.com/weppos/publicsuffix-go v0.30.0 // indirect 44 - + github.com/zmap/rc2 v0.0.0-20190804163417-abaa70531248 // indirect 45 - + google.golang.org/protobuf v1.30.0 // indirect 46 - +)
···
+10 -17
pkgs/by-name/zg/zgrab2/package.nix
··· 4 fetchFromGitHub, 5 }: 6 7 - buildGoModule { 8 pname = "zgrab2"; 9 - version = "unstable-2023-03-23"; 10 11 src = fetchFromGitHub { 12 owner = "zmap"; 13 repo = "zgrab2"; 14 - rev = "911c86f13080ceae98f8d63d1ae0e85c4a8f7f61"; 15 - hash = "sha256-VOWkBM/SziY3jiIaYYWq+LRzG4vKitiscqdIDfRUkYY="; 16 }; 17 18 - vendorHash = "sha256-Q3FCqvh4vn64QXqcePhVWTyIHJarI6I4YonH3X/7RhI="; 19 - 20 - patches = [ 21 - # Without this, we get error messages like: 22 - # vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod) 23 - # The patch was generated by changing "go 1.12" to "go 1.17" and executing `go mod tidy -compat=1.17`. 24 - ./fix-go-version-error.patch 25 - ]; 26 27 subPackages = [ 28 "cmd/zgrab2" 29 ]; 30 31 - meta = with lib; { 32 - description = "Web application scanner"; 33 mainProgram = "zgrab2"; 34 homepage = "https://github.com/zmap/zgrab2"; 35 - license = with licenses; [ 36 asl20 37 isc 38 ]; 39 - maintainers = with maintainers; [ 40 fab 41 juliusrickert 42 ]; 43 }; 44 - }
··· 4 fetchFromGitHub, 5 }: 6 7 + buildGoModule (finalAttrs: { 8 pname = "zgrab2"; 9 + version = "0.2.0"; 10 11 src = fetchFromGitHub { 12 owner = "zmap"; 13 repo = "zgrab2"; 14 + tag = "v${finalAttrs.version}"; 15 + hash = "sha256-9YDrWtSFFzFMN/pp0Kaknie4NMduOb/ZNrP+7MIMT+0="; 16 }; 17 18 + vendorHash = "sha256-8oidWUtSMMm/QMzrTkH07eyyBhCeZ9SUOO1+h1evbac="; 19 20 subPackages = [ 21 "cmd/zgrab2" 22 ]; 23 24 + meta = { 25 + description = "Fast Application Layer Scanner"; 26 mainProgram = "zgrab2"; 27 homepage = "https://github.com/zmap/zgrab2"; 28 + license = with lib.licenses; [ 29 asl20 30 isc 31 ]; 32 + maintainers = with lib.maintainers; [ 33 fab 34 juliusrickert 35 ]; 36 }; 37 + })