From 841fa776de45006ca5ff338910cce7b585c096c8 Mon Sep 17 00:00:00 2001 From: DCsunset Date: Tue, 8 Aug 2023 10:59:34 -0400 Subject: [PATCH] goldendict-ng: fix crash due to GLib error --- pkgs/applications/misc/goldendict-ng/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/goldendict-ng/default.nix b/pkgs/applications/misc/goldendict-ng/default.nix index 983b61b9317c..eacea109cf20 100644 --- a/pkgs/applications/misc/goldendict-ng/default.nix +++ b/pkgs/applications/misc/goldendict-ng/default.nix @@ -26,6 +26,7 @@ , qtmultimedia , qtspeech , wrapQtAppsHook +, wrapGAppsHook }: stdenv.mkDerivation (finalAttrs: { @@ -39,7 +40,7 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-ZKbrO5L4KFmr2NsGDihRWBeW0OXHoPRwZGj6kt1Anc8="; }; - nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook ]; + nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook wrapGAppsHook ]; buildInputs = [ qtbase qtsvg @@ -64,6 +65,13 @@ stdenv.mkDerivation (finalAttrs: { libzim ]; + # to prevent double wrapping of wrapQtApps and wrapGApps + dontWrapGApps = true; + + preFixup = '' + qtWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + cmakeFlags = [ "-DWITH_XAPIAN=ON" "-DWITH_ZIM=ON"