Commit 69ebb043 authored by Mario Rodas's avatar Mario Rodas
Browse files

opensnitch: fix test version

parent 0d767c96
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -27,6 +27,11 @@ buildGoModule rec {
    hash = "sha256-C8Uuz2FC7Zu07ZmFpp+ejpNxkyC3/mM9J2dc5FUKx64=";
  };

  postPatch = ''
    # Allow configuring Version at build time
    substituteInPlace daemon/core/version.go --replace "const " "var "
  '';

  modRoot = "daemon";

  buildInputs = [
@@ -65,6 +70,8 @@ buildGoModule rec {
      --replace "/bin/mkdir" "${coreutils}/bin/mkdir"
  '';

  ldflags = [ "-s" "-w" "-X github.com/evilsocket/opensnitch/daemon/core.Version=${version}" ];

  postInstall = ''
    wrapProgram $out/bin/opensnitchd \
      --prefix PATH : ${lib.makeBinPath [ iptables ]}