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:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user