nixpkgs/pkgs/tools/security/waf-tester/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
969 B
Nix
Raw Normal View History

2022-06-21 09:52:16 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, waf-tester
}:
buildGoModule rec {
pname = "waf-tester";
2023-03-04 09:33:51 +00:00
version = "0.6.13";
2022-06-21 09:52:16 +00:00
src = fetchFromGitHub {
owner = "jreisinger";
repo = pname;
2023-03-04 10:20:08 +00:00
rev = "refs/tags/v${version}";
2023-03-04 09:33:51 +00:00
hash = "sha256-UPviooQNGRVwf/bTz9ApedJDAGeCvh9iD1HXFOQXPcw=";
2022-06-21 09:52:16 +00:00
};
2023-03-04 09:33:51 +00:00
vendorHash = "sha256-HOYHrR1LtVcXMKFHPaA7PYH4Fp9nhqal2oxYTq/i4/8=";
2022-06-21 09:52:16 +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)";
homepage = "https://github.com/jreisinger/waf-tester";
2023-03-04 10:20:08 +00:00
changelog = "https://github.com/jreisinger/waf-tester/releases/tag/v${version}";
2022-06-21 09:52:16 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}