12 stdenv.mkDerivation rec {
14 version = "0.5-alpha2";
16 src = fetchFromGitHub {
20 hash = "sha256-q3XfwJ4TGK4E58haN0Q0xRH4GDpKD8VZzyxHe/VwBqY=";
26 libsForQt5.wrapQtAppsHook
29 buildInputs = with libsForQt5; [
36 substituteInPlace src/platform/digmanager.cpp \
37 --replace '"dig"' '"${dnsutils}/bin/dig"'
38 substituteInPlace src/platform/discover.cpp \
39 --replace '"nping"' '"${nmap}/bin/nping"'
41 src/platform/monitor/monitor.cpp \
42 src/platform/nsemanager.cpp ; do
44 substituteInPlace $f \
45 --replace '"nmap"' '"${nmap}/bin/nmap"'
50 mv $out/share/applications/kde4/*.desktop $out/share/applications
51 rmdir $out/share/applications/kde4
53 for f in $out/share/applications/* ; do
54 substituteInPlace $f \
60 description = "Qt frontend for nmap";
61 mainProgram = "nmapsi4";
62 changelog = "https://github.com/nmapsi4/nmapsi4/releases/tag/${src.rev}";
63 license = lib.licenses.gpl2Plus;
64 maintainers = with lib.maintainers; [ peterhoeg ];
65 inherit (src.meta) homepage;