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.
This commit is contained in:
Andrew Marshall
2026-02-01 09:40:12 -05:00
parent bfc1b8a457
commit c65d0b4ffe
+1 -1
View File
@@ -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 = [