Commit c65d0b4f authored by Andrew Marshall's avatar Andrew Marshall
Browse files

termshark: prefer dumpcap from PATH to fix using security wrapper

Prepending wireshark-cli to the PATH means it will get used instead of
one already in the PATH. This is bad since, in most cases, `dumpcap`
needs a `security.wrappers` definition (e.g. from `programs.wireshark`),
but this would not use that. Change to suffix so that the
security-wrapped dumpcap will be used instead.

See https://github.com/NixOS/nixpkgs/issues/322121.
parent bfc1b8a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ buildGoModule rec {
  doCheck = false;

  postFixup = ''
    wrapProgram $out/bin/termshark --prefix PATH : ${lib.makeBinPath [ wireshark-cli ]}
    wrapProgram $out/bin/termshark --suffix PATH : ${lib.makeBinPath [ wireshark-cli ]}
  '';

  ldflags = [