3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #178277 from fabaff/waf-tester

waf-tester: init at 0.6.10
This commit is contained in:
Fabian Affolter 2022-06-29 08:58:48 +02:00 committed by GitHub
commit c2add3d0d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -11887,6 +11887,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;
};