Unverified Commit 08e44062 authored by Grimmauld's avatar Grimmauld
Browse files

opensnitch: allow configuring audit socket path

parent 7d5e1d98
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
{
  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 "