diff --git a/pkgs/tools/security/waf-tester/default.nix b/pkgs/tools/security/waf-tester/default.nix new file mode 100644 index 000000000000..3ef1dbb47e19 --- /dev/null +++ b/pkgs/tools/security/waf-tester/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, testers +, waf-tester +}: + +buildGoModule rec { + pname = "waf-tester"; + version = "0.6.10"; + + src = fetchFromGitHub { + owner = "jreisinger"; + repo = pname; + rev = "v${version}"; + hash = "sha256-fl0gcpcJr7yckfNcnt1C+i2iGdD2oiCq7gJIkiz2v7E="; + }; + + vendorSha256 = "sha256-qVzgZX4HVXZ3qgYAu3a46vcGl4Pk2D1Zx/giEmPEG88="; + + ldflags = [ + "-s" + "-w" + "-X main.version=${version}" + ]; + + passthru.tests.version = testers.testVersion { + package = waf-tester; + command = "waf-tester -version"; + version = "waf-tester ${version}, commit none, built at unknown by unknown"; + }; + + meta = with lib; { + description = "Tool to test Web Application Firewalls (WAFs)"; + homepage = "https://github.com/jreisinger/waf-tester"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8a5f96617499..9c4062450525 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11759,6 +11759,8 @@ with pkgs; waf = callPackage ../development/tools/build-managers/waf { }; wafHook = callPackage ../development/tools/build-managers/wafHook { }; + waf-tester = callPackage ../tools/security/waf-tester { }; + wagyu = callPackage ../tools/misc/wagyu { inherit (darwin.apple_sdk.frameworks) Security; };