2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
|
|
|
, waf-tester
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "waf-tester";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.6.13";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jreisinger";
|
|
|
|
repo = pname;
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-UPviooQNGRVwf/bTz9ApedJDAGeCvh9iD1HXFOQXPcw=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
vendorHash = "sha256-HOYHrR1LtVcXMKFHPaA7PYH4Fp9nhqal2oxYTq/i4/8=";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
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)";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "waf-tester";
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://github.com/jreisinger/waf-tester";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/jreisinger/waf-tester/releases/tag/v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|