wireshark: ln ext bins to $out for discoverability (#513682)

This commit is contained in:
Bjørn Forsman
2026-05-07 18:19:15 +00:00
committed by GitHub
+4
View File
@@ -52,6 +52,7 @@
withQt ? true,
qt6,
libpcap' ? libpcap.override { withBluez = stdenv.hostPlatform.isLinux; },
withExtras ? stdenv.hostPlatform.isLinux,
}:
let
isAppBundle = withQt && stdenv.hostPlatform.isDarwin;
@@ -185,6 +186,9 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = ''
cmake --install . --prefix "''${!outputDev}" --component Development
''
+ lib.optionalString withExtras ''
ln -s $out/libexec/wireshark/extcap/* -t $out/bin/
''
+ lib.optionalString isAppBundle ''
mkdir -p $out/Applications
mv $out/bin/Wireshark.app $out/Applications/Wireshark.app