File tree Expand file tree Collapse file tree 2 files changed +88
-0
lines changed Expand file tree Collapse file tree 2 files changed +88
-0
lines changed Original file line number Diff line number Diff line change 1676216762 githubId = 6295090;
1676316763 name = "Mats";
1676416764 };
16765+ mymindstorm = {
16766+ name = "Brendan Early";
16767+ 16768+ github = "mymindstorm";
16769+ githubId = 27789806;
16770+ keys = [ { fingerprint = "52B9 A09F 788F 4D1F 0C94 9EBE EE39 A9F3 0C9D 72B5"; } ];
16771+ };
1676516772 mynacol = {
1676616773 github = "Mynacol";
1676716774 githubId = 26695166;
Original file line number Diff line number Diff line change 1+ {
2+ gobject-introspection ,
3+ gtk3 ,
4+ lib ,
5+ nmap ,
6+ python3Packages ,
7+ wrapGAppsHook3 ,
8+ xterm ,
9+ } :
10+
11+ python3Packages . buildPythonApplication rec {
12+ pname = "zenmap" ;
13+ version = nmap . version ;
14+ pyproject = true ;
15+
16+ src = nmap . src ;
17+
18+ prePatch = ''
19+ cd zenmap
20+ '' ;
21+
22+ build-system = with python3Packages ; [
23+ setuptools
24+ ] ;
25+
26+ buildInputs = [
27+ nmap
28+ gtk3
29+ xterm
30+ ] ;
31+
32+ nativeBuildInputs = [
33+ wrapGAppsHook3
34+ gobject-introspection
35+ ] ;
36+
37+ nativeCheckInputs = [
38+ nmap
39+ ] ;
40+
41+ dependencies = with python3Packages ; [
42+ pygobject3
43+ ] ;
44+
45+ dontWrapGApps = true ;
46+ preFixup = ''
47+ makeWrapperArgs+=("'' ${gappsWrapperArgs[@]}")
48+ makeWrapperArgs+=(--prefix PATH : ${ lib . makeBinPath [ nmap ] } )
49+ '' ;
50+ postInstall = ''
51+ # Icons
52+ install -Dm 644 "zenmapCore/data/pixmaps/zenmap.png" -t "$out/share/pixmaps/"
53+ # Desktop-files for application
54+ install -Dm 644 "install_scripts/unix/zenmap.desktop" -t "$out/share/applications/"
55+ install -Dm 644 "install_scripts/unix/zenmap-root.desktop" -t "$out/share/applications/"
56+ install -Dm 755 "install_scripts/unix/su-to-zenmap.sh" -t "$out/bin/"
57+ substituteInPlace "$out/bin/su-to-zenmap.sh" \
58+ --replace-fail 'COMMAND="zenmap"' \
59+ 'COMMAND="'"$out/bin/zenmap"'"' \
60+ --replace-fail 'xterm' \
61+ '"${ xterm } /bin/xterm"'
62+ '' ;
63+
64+ checkPhase = ''
65+ runHook preCheck
66+
67+ cd test
68+ ${ python3Packages . python . interpreter } run_tests.py 2>&1 | tee /dev/stderr | tail -n1 | grep '^OK$'
69+
70+ runHook postCheck
71+ '' ;
72+
73+ meta = nmap . meta // {
74+ description = "Offical nmap Security Scanner GUI" ;
75+ homepage = "https://nmap.org/zenmap/" ;
76+ maintainers = with lib . maintainers ; [
77+ dvaerum
78+ mymindstorm
79+ ] ;
80+ } ;
81+ }
You can’t perform that action at this time.
0 commit comments