about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2024-09-25 09:07:15 +0200
committerGitHub <noreply@github.com>2024-09-25 09:07:15 +0200
commit114bbb63eb66dd0328e46fe3ab83301b9b981f64 (patch)
tree9a075a5ea82d12e328f2fb9c6ca56cb02adc4367 /pkgs/tools
parent14e715b7178cc5633c9a390e5fe1cf6864b934d3 (diff)
parent1b1ad08cdbe5b1ae487d246f969041a372ac7484 (diff)
gotestwaf: 0.4.19 -> 0.5.5 (#344286)
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/security/gotestwaf/default.nix13
1 files changed, 4 insertions, 9 deletions
diff --git a/pkgs/tools/security/gotestwaf/default.nix b/pkgs/tools/security/gotestwaf/default.nix
index 28305ceb4e8ee..6cbe088d6871f 100644
--- a/pkgs/tools/security/gotestwaf/default.nix
+++ b/pkgs/tools/security/gotestwaf/default.nix
@@ -8,16 +8,16 @@
 
 buildGoModule rec {
   pname = "gotestwaf";
-  version = "0.4.19";
+  version = "0.5.5";
 
   src = fetchFromGitHub {
     owner = "wallarm";
     repo = "gotestwaf";
     rev = "refs/tags/v${version}";
-    hash = "sha256-ax2HPhdaqawpFe2AZg3SVsEJLG7gEgL7632iRADpaa8=";
+    hash = "sha256-stGjxv9cgYxxclQpyytN6dhFm2G1Gxbf9MdyKw6gEC4=";
   };
 
-  vendorHash = null;
+  vendorHash = "sha256-mPqCphweDF9RQibdjTaXXfXdO8NENHVMdIPxrJEw2g4=";
 
   # Some tests require networking as of v0.4.0
   doCheck = false;
@@ -28,11 +28,6 @@ buildGoModule rec {
     "-X=github.com/wallarm/gotestwaf/internal/version.Version=v${version}"
   ];
 
-  postFixup = ''
-    # Rename binary
-    mv $out/bin/cmd $out/bin/${pname}
-  '';
-
   passthru.tests.version = testers.testVersion {
     command = "gotestwaf --version";
     package = gotestwaf;
@@ -41,10 +36,10 @@ buildGoModule rec {
 
   meta = with lib; {
     description = "Tool for API and OWASP attack simulation";
-    mainProgram = "gotestwaf";
     homepage = "https://github.com/wallarm/gotestwaf";
     changelog = "https://github.com/wallarm/gotestwaf/releases/tag/v${version}";
     license = licenses.mit;
     maintainers = with maintainers; [ fab ];
+    mainProgram = "gotestwaf";
   };
 }