biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / gotestwaf / default.nix
blob6cbe088d6871f5b7a7b62503ec3ddec39040c4ec
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   gotestwaf,
6   testers,
7 }:
9 buildGoModule rec {
10   pname = "gotestwaf";
11   version = "0.5.5";
13   src = fetchFromGitHub {
14     owner = "wallarm";
15     repo = "gotestwaf";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-stGjxv9cgYxxclQpyytN6dhFm2G1Gxbf9MdyKw6gEC4=";
18   };
20   vendorHash = "sha256-mPqCphweDF9RQibdjTaXXfXdO8NENHVMdIPxrJEw2g4=";
22   # Some tests require networking as of v0.4.0
23   doCheck = false;
25   ldflags = [
26     "-w"
27     "-s"
28     "-X=github.com/wallarm/gotestwaf/internal/version.Version=v${version}"
29   ];
31   passthru.tests.version = testers.testVersion {
32     command = "gotestwaf --version";
33     package = gotestwaf;
34     version = "v${version}";
35   };
37   meta = with lib; {
38     description = "Tool for API and OWASP attack simulation";
39     homepage = "https://github.com/wallarm/gotestwaf";
40     changelog = "https://github.com/wallarm/gotestwaf/releases/tag/v${version}";
41     license = licenses.mit;
42     maintainers = with maintainers; [ fab ];
43     mainProgram = "gotestwaf";
44   };