13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 sha256 = "sha256-lWiDbWc2BWAUgyaIm0tvZytja02WogYRoc7na4sHiNM=";
24 # Nikto searches its configuration file based on its current path
25 # This fixes the current path regex for the wrapped executable.
26 patches = [ ./nix-wrapper-fix.patch ];
29 # EXECDIR needs to be changed to the path where we copy the programs stuff
30 # Forcing SSLeay is needed for SSL support (the auto mode doesn't seem to work otherwise)
31 substituteInPlace program/nikto.conf.default \
32 --replace "# EXECDIR=/opt/nikto" "EXECDIR=$out/share" \
33 --replace "LW_SSL_ENGINE=auto" "LW_SSL_ENGINE=SSLeay"
43 perlPackages.NetSSLeay
48 install -d "$out/share"
49 cp -a program/* "$out/share"
50 install -Dm 755 "program/nikto.pl" "$out/bin/nikto"
51 install -Dm 644 program/nikto.conf.default "$out/etc/nikto.conf"
52 installManPage documentation/nikto.1
53 install -Dm 644 README.md "$out/share/doc/${pname}/README"
58 wrapProgram $out/bin/nikto \
59 --prefix PERL5LIB : $PERL5LIB
63 description = "Web server scanner";
64 mainProgram = "nikto";
65 license = licenses.gpl2Plus;
66 homepage = "https://cirt.net/Nikto2";
67 changelog = "https://github.com/sullo/nikto/releases/tag/${version}";
68 maintainers = with maintainers; [ shamilton ];
69 platforms = platforms.unix;