From 08e440629d0205f1e64df5308cf1945e7968a606 Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Tue, 9 Sep 2025 17:03:58 +0200 Subject: [PATCH] opensnitch: allow configuring audit socket path --- pkgs/by-name/op/opensnitch/package.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/by-name/op/opensnitch/package.nix b/pkgs/by-name/op/opensnitch/package.nix index dc99acef4777..b682efc1bc1e 100644 --- a/pkgs/by-name/op/opensnitch/package.nix +++ b/pkgs/by-name/op/opensnitch/package.nix @@ -1,6 +1,7 @@ { buildGoModule, fetchFromGitHub, + fetchpatch, protobuf, go-protobuf, pkg-config, @@ -43,6 +44,20 @@ buildGoModule (finalAttrs: { hash = "sha256-XAR7yZjAzbMxIVGSV82agpAGwlejkILGgDI6iRicZuQ="; }; + patches = [ + (fetchpatch { + # https://github.com/evilsocket/opensnitch/pull/1418 + # allow configuring the audit socket path + url = "https://github.com/evilsocket/opensnitch/commit/f9358a464f204068359bf5174e6ff43288f12c7e.patch?full_index=1"; + hash = "sha256-s9CM1CyGpfJZXEtihXCM7nfPhBY8XuwubynTotqtf3E="; + }) + (fetchpatch { + # add missing colon in test definition + url = "https://github.com/evilsocket/opensnitch/commit/4b38ca1260295d2e0f8c4a7313529f83dcca4554.patch?full_index=1"; + hash = "sha256-/z3iFRpcv75FyarVnpK8/PTU2fcFHS+SNbHn7M5Etk8="; + }) + ]; + postPatch = '' # Allow configuring Version at build time substituteInPlace daemon/core/version.go --replace-fail "const " "var "