From c65d0b4ffe4f3241b7bc04f546564925b23e5cf5 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Sun, 1 Feb 2026 09:38:38 -0500 Subject: [PATCH] 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. --- pkgs/by-name/te/termshark/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/te/termshark/package.nix b/pkgs/by-name/te/termshark/package.nix index 3e14bd7b83eb..ff7341d5732f 100644 --- a/pkgs/by-name/te/termshark/package.nix +++ b/pkgs/by-name/te/termshark/package.nix @@ -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 = [