diff options
Diffstat (limited to 'pkgs/tools/security/zgrab2/default.nix')
-rw-r--r-- | pkgs/tools/security/zgrab2/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/tools/security/zgrab2/default.nix b/pkgs/tools/security/zgrab2/default.nix index b8863a6a94e..03b58949d8a 100644 --- a/pkgs/tools/security/zgrab2/default.nix +++ b/pkgs/tools/security/zgrab2/default.nix @@ -5,17 +5,24 @@ buildGoModule rec { pname = "zgrab2"; - version = "20210327-${lib.strings.substring 0 7 rev}"; - rev = "17a5257565c758e2b817511d15476d330be0a17a"; + version = "20230323-${lib.strings.substring 0 7 rev}"; + rev = "911c86f13080ceae98f8d63d1ae0e85c4a8f7f61"; src = fetchFromGitHub { owner = "zmap"; repo = pname; inherit rev; - sha256 = "1hxk2jggj8lww97lwmks46i001p5ycnxnck8yya6d0fd3ayxvw2w"; + hash = "sha256-VOWkBM/SziY3jiIaYYWq+LRzG4vKitiscqdIDfRUkYY="; }; - vendorSha256 = "1s0azy5b5hi5h24vs6a9f1n70l980vkid28ihqh10zq6ajmds2z3"; + vendorHash = "sha256-Q3FCqvh4vn64QXqcePhVWTyIHJarI6I4YonH3X/7RhI="; + + patches = [ + # Without this, we get error messages like: + # 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) + # The patch was generated by changing "go 1.12" to "go 1.17" and executing `go mod tidy -compat=1.17`. + ./fix-go-version-error.patch + ]; subPackages = [ "cmd/zgrab2" ]; @@ -23,6 +30,6 @@ buildGoModule rec { description = "Web application scanner"; homepage = "https://github.com/zmap/zgrab2"; license = with licenses; [ asl20 isc ]; - maintainers = with maintainers; [ fab ]; + maintainers = with maintainers; [ fab juliusrickert ]; }; } |