lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

opensnitch: init at 1.3.6

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.

+100
+50
pkgs/tools/networking/opensnitch/daemon.nix
··· 1 + { buildGoModule 2 + , fetchFromGitHub 3 + , fetchpatch 4 + , pkg-config 5 + , libnetfilter_queue 6 + , libnfnetlink 7 + , lib 8 + }: 9 + 10 + buildGoModule rec { 11 + pname = "opensnitch"; 12 + version = "1.3.6"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "evilsocket"; 16 + repo = "opensnitch"; 17 + rev = "v${version}"; 18 + sha256 = "sha256-Cgo+bVQQeUZuYYhA1WSqlLyQQGAeXbbNno9LS7oNvhI="; 19 + }; 20 + 21 + patches = [ 22 + # https://github.com/evilsocket/opensnitch/pull/384 don't require 23 + # a configuration file in /etc 24 + (fetchpatch { 25 + name = "dont-require-config-in-etc.patch"; 26 + url = "https://github.com/evilsocket/opensnitch/commit/8a3f63f36aa92658217bbbf46d39e6d20b2c0791.patch"; 27 + sha256 = "sha256-WkwjKTQZppR0nqvRO4xiQoKZ307NvuUwoRx+boIpuTg="; 28 + }) 29 + ]; 30 + 31 + modRoot = "daemon"; 32 + 33 + postBuild = '' 34 + mv $GOPATH/bin/daemon $GOPATH/bin/opensnitchd 35 + ''; 36 + 37 + vendorSha256 = "sha256-LMwQBFkHg1sWIUITLOX2FZi5QUfOivvrkcl9ELO3Trk="; 38 + 39 + nativeBuildInputs = [ pkg-config ]; 40 + 41 + buildInputs = [ libnetfilter_queue libnfnetlink ]; 42 + 43 + meta = with lib; { 44 + description = "An application firewall"; 45 + homepage = "https://github.com/evilsocket/opensnitch/wiki"; 46 + license = licenses.gpl3Only; 47 + maintainers = [ maintainers.raboof ]; 48 + platforms = platforms.linux; 49 + }; 50 + }
+46
pkgs/tools/networking/opensnitch/ui.nix
··· 1 + { python3Packages 2 + , fetchFromGitHub 3 + , wrapQtAppsHook 4 + , lib 5 + }: 6 + 7 + python3Packages.buildPythonApplication rec { 8 + pname = "opensnitch-ui"; 9 + version = "1.3.6"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "evilsocket"; 13 + repo = "opensnitch"; 14 + rev = "v${version}"; 15 + sha256 = "sha256-Cgo+bVQQeUZuYYhA1WSqlLyQQGAeXbbNno9LS7oNvhI="; 16 + }; 17 + 18 + nativeBuildInputs = [ wrapQtAppsHook ]; 19 + 20 + propagatedBuildInputs = with python3Packages; [ 21 + grpcio-tools 22 + pyqt5 23 + unidecode 24 + unicode-slugify 25 + pyinotify 26 + ]; 27 + 28 + preConfigure = '' 29 + cd ui 30 + ''; 31 + 32 + preCheck = '' 33 + export PYTHONPATH=opensnitch:$PYTHONPATH 34 + ''; 35 + 36 + dontWrapQtApps = true; 37 + makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ]; 38 + 39 + meta = with lib; { 40 + description = "An application firewall"; 41 + homepage = "https://github.com/evilsocket/opensnitch/wiki"; 42 + license = licenses.gpl3Only; 43 + maintainers = [ maintainers.raboof ]; 44 + platforms = platforms.linux; 45 + }; 46 + }
+4
pkgs/top-level/all-packages.nix
··· 6880 6880 6881 6881 openfortivpn = callPackage ../tools/networking/openfortivpn { }; 6882 6882 6883 + opensnitch = callPackage ../tools/networking/opensnitch/daemon.nix { }; 6884 + 6885 + opensnitch-ui = libsForQt5.callPackage ../tools/networking/opensnitch/ui.nix { }; 6886 + 6883 6887 obexfs = callPackage ../tools/bluetooth/obexfs { }; 6884 6888 6885 6889 obexftp = callPackage ../tools/bluetooth/obexftp { };