ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
39 lines
876 B
Nix
39 lines
876 B
Nix
{ 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 ];
|
|
};
|
|
}
|