8 python311Packages.buildPythonApplication rec {
9 pname = "opensnitch-ui";
12 src = fetchFromGitHub {
15 rev = "refs/tags/v${version}";
16 hash = "sha256-pJPpkXRp7cby6Mvc7IzxH9u6MY4PcrRPkimTw3je6iI=";
20 substituteInPlace ui/opensnitch/utils/__init__.py \
21 --replace /usr/lib/python3/dist-packages/data ${python311Packages.pyasn}/${python311Packages.python.sitePackages}/pyasn/data
25 python311Packages.pyqt5
33 propagatedBuildInputs = with python311Packages; [
45 make -C ../proto ../ui/opensnitch/ui_pb2.py
46 # sourced from ui/Makefile
47 pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
48 sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2*
56 export PYTHONPATH=opensnitch:$PYTHONPATH
60 mv $out/${python311Packages.python.sitePackages}/usr/* $out/
63 dontWrapQtApps = true;
64 makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ];
66 # All tests are sandbox-incompatible and disabled for now
69 passthru.updateScript = nix-update-script { };
72 description = "Application firewall";
73 mainProgram = "opensnitch-ui";
74 homepage = "https://github.com/evilsocket/opensnitch/wiki";
75 license = licenses.gpl3Only;
76 maintainers = with maintainers; [ onny ];
77 platforms = platforms.linux;