about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/wpscan/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/security/wpscan/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/security/wpscan/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/wpscan/default.nix b/nixpkgs/pkgs/tools/security/wpscan/default.nix
new file mode 100644
index 000000000000..965c48b304fe
--- /dev/null
+++ b/nixpkgs/pkgs/tools/security/wpscan/default.nix
@@ -0,0 +1,30 @@
+{ lib
+, bundlerApp
+, makeWrapper
+, curl
+}:
+
+bundlerApp {
+  pname = "wpscan";
+  gemdir = ./.;
+  exes = [ "wpscan" ];
+
+  buildInputs = [
+    makeWrapper
+  ];
+
+  postBuild = ''
+    wrapProgram "$out/bin/wpscan" \
+      --prefix PATH : ${lib.makeBinPath [ curl ]}
+  '';
+
+  passthru.updateScript = ./update.sh;
+
+  meta = with lib; {
+    description = "Black box WordPress vulnerability scanner";
+    homepage = "https://wpscan.org/";
+    license = licenses.unfreeRedistributable;
+    maintainers = with maintainers; [ nyanloutre manveru ];
+    platforms = platforms.unix;
+  };
+}