4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
40 lines
969 B
Nix
40 lines
969 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, waf-tester
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "waf-tester";
|
|
version = "0.6.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jreisinger";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-UPviooQNGRVwf/bTz9ApedJDAGeCvh9iD1HXFOQXPcw=";
|
|
};
|
|
|
|
vendorHash = "sha256-HOYHrR1LtVcXMKFHPaA7PYH4Fp9nhqal2oxYTq/i4/8=";
|
|
|
|
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";
|
|
changelog = "https://github.com/jreisinger/waf-tester/releases/tag/v${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|