mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
opensnitch-ui: fix events table and notifications
This commit is contained in:
parent
9644cda0a0
commit
c49b3af8b4
@ -15,6 +15,11 @@ python3Packages.buildPythonApplication rec {
|
||||
sha256 = "sha256-8IfupmQb1romGEvv/xqFkYhp0gGoY4ZEllX6rZYIkqw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ui/opensnitch/utils.py \
|
||||
--replace /usr/lib/python3/dist-packages/data ${python3Packages.pyasn}/${python3Packages.python.sitePackages}/pyasn/data
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3Packages.pyqt5
|
||||
wrapQtAppsHook
|
||||
@ -32,7 +37,9 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
preBuild = ''
|
||||
make -C ../proto ../ui/opensnitch/ui_pb2.py
|
||||
# sourced from ui/Makefile
|
||||
pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
|
||||
sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2*
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
@ -44,7 +51,7 @@ python3Packages.buildPythonApplication rec {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mv $out/lib/python3.9/site-packages/usr/* $out/
|
||||
mv $out/${python3Packages.python.sitePackages}/usr/* $out/
|
||||
'';
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
Loading…
Reference in New Issue
Block a user