git.iko.soy/typeable/nixpkgs
on master help sign in
wireshark: add wrapGAppsHook

This fixes using the file chooser on non-NixOS: (wireshark:28052): GLib-GIO-ERROR **: 12:10:03.798: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'show-type-column'

commit61afa3e16b1e7c0cafe9dbce8cbc7b919f1a1a6b authorBjørn Forsman <bjorn.forsman@gmail.com> dateWed 23 Mar 2022, 12:34 (5 years ago) parent9d6d47a
1 file changed+9−2
pkgs/applications/networking/sniffers/wireshark/default.nix+9−2
pkgs/applications/networking/sniffers/wireshark/default.nix+9−2
@@ -1,6 +1,6 @@
11{ lib, stdenv, fetchurl, pkg-config, pcre, perl, flex, bison, gettext, libpcap, libnl, c-ares
22, gnutls, libgcrypt, libgpg-error, geoip, openssl, lua5, python3, libcap, glib
3−, libssh, nghttp2, zlib, cmake, makeWrapper
3+, libssh, nghttp2, zlib, cmake, makeWrapper, wrapGAppsHook
44, withQt ? true, qt5 ? null
55, ApplicationServices, SystemConfiguration, gmp
66, asciidoctor
@@ -34,7 +34,8 @@ in stdenv.mkDerivation {
3434 # Avoid referencing -dev paths because of debug assertions.
3535 NIX_CFLAGS_COMPILE = [ "-DQT_NO_DEBUG" ];
3636
37− nativeBuildInputs = [ asciidoctor bison cmake flex makeWrapper pkg-config ] ++ optional withQt qt5.wrapQtAppsHook;
37+ nativeBuildInputs = [ asciidoctor bison cmake flex makeWrapper pkg-config ]
38+ ++ optionals withQt [ qt5.wrapQtAppsHook wrapGAppsHook ];
3839
3940 buildInputs = [
4041 gettext pcre perl libpcap lua5 libssh nghttp2 openssl libgcrypt
@@ -85,6 +86,12 @@ in stdenv.mkDerivation {
8586
8687 dontFixCmake = true;
8788
89+ # Prevent double-wrapping, inject wrapper args manually instead.
90+ dontWrapGApps = true;
91+ preFixup = ''
92+ qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
93+ '';
94+
8895 shellHook = ''
8996 # to be able to run the resulting binary
9097 export WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1