9 python311Packages.buildPythonApplication rec {
10 pname = "opensnitch-ui";
13 src = fetchFromGitHub {
16 rev = "refs/tags/v${version}";
17 hash = "sha256-2BwFCRbVvs7pAM5SnhynWws2+QthB/F9V6DYPViDICU=";
21 substituteInPlace ui/opensnitch/utils/__init__.py \
22 --replace /usr/lib/python3/dist-packages/data ${python311Packages.pyasn}/${python311Packages.python.sitePackages}/pyasn/data
26 python311Packages.pyqt5
34 propagatedBuildInputs = with python311Packages; [
46 make -C ../proto ../ui/opensnitch/ui_pb2.py
47 # sourced from ui/Makefile
48 pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
49 sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2*
57 export PYTHONPATH=opensnitch:$PYTHONPATH
61 mv $out/${python311Packages.python.sitePackages}/usr/* $out/
64 dontWrapQtApps = true;
65 makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ];
67 # All tests are sandbox-incompatible and disabled for now
70 passthru.updateScript = nix-update-script { };
73 description = "Application firewall";
74 mainProgram = "opensnitch-ui";
75 homepage = "https://github.com/evilsocket/opensnitch/wiki";
76 license = licenses.gpl3Only;
77 maintainers = with maintainers; [ onny ];
78 platforms = platforms.linux;