waf-tester: init at 0.6.10

This commit is contained in:
Fabian Affolter 2022-06-21 11:52:16 +02:00
parent a6b0effb24
commit 7b564cd76f
2 changed files with 41 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -11759,6 +11759,8 @@ with pkgs;
waf = callPackage ../development/tools/build-managers/waf { }; waf = callPackage ../development/tools/build-managers/waf { };
wafHook = callPackage ../development/tools/build-managers/wafHook { }; wafHook = callPackage ../development/tools/build-managers/wafHook { };
waf-tester = callPackage ../tools/security/waf-tester { };
wagyu = callPackage ../tools/misc/wagyu { wagyu = callPackage ../tools/misc/wagyu {
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
}; };