mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
f46c4f5124
Just the daemon and ui programs. It would of course be nice to also have it available as a NixOS service, but I'd like to leave that as future work.
47 lines
931 B
Nix
47 lines
931 B
Nix
{ python3Packages
|
|
, fetchFromGitHub
|
|
, wrapQtAppsHook
|
|
, lib
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "opensnitch-ui";
|
|
version = "1.3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "evilsocket";
|
|
repo = "opensnitch";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Cgo+bVQQeUZuYYhA1WSqlLyQQGAeXbbNno9LS7oNvhI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
grpcio-tools
|
|
pyqt5
|
|
unidecode
|
|
unicode-slugify
|
|
pyinotify
|
|
];
|
|
|
|
preConfigure = ''
|
|
cd ui
|
|
'';
|
|
|
|
preCheck = ''
|
|
export PYTHONPATH=opensnitch:$PYTHONPATH
|
|
'';
|
|
|
|
dontWrapQtApps = true;
|
|
makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ];
|
|
|
|
meta = with lib; {
|
|
description = "An application firewall";
|
|
homepage = "https://github.com/evilsocket/opensnitch/wiki";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.raboof ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|