about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/wpscan/default.nix
blob: 4b3757ae7673ae8a85769dffedc4f0d112c0c665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, bundlerApp
, makeWrapper
, curl
}:

bundlerApp {
  pname = "wpscan";
  gemdir = ./.;
  exes = [ "wpscan" ];

  nativeBuildInputs = [ 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;
  };
}