Commit ca3e1604 authored by Orivej Desh's avatar Orivej Desh
Browse files

musescore: use wrapGAppsHook3 on Linux only

Since musescore/MuseScore@685ac998 GTK3 is needed on Linux for file dialogs.

wrapGAppsNoGuiHook is not sufficient - without wrapGAppsHook3 mscore
crashes in File -> Open when XDG_DATA_DIRS is unset.
parent 18ecb38a
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
, fetchFromGitHub
, fetchpatch
, cmake
, wrapGAppsNoGuiHook
, wrapGAppsHook3
, wrapQtAppsHook
, pkg-config
, ninja
@@ -103,14 +103,15 @@ in stdenv'.mkDerivation (finalAttrs: {
  dontWrapGApps = true;

  nativeBuildInputs = [
    # Just to make it not crash when looking up Gschemas when opening external
    # files
    wrapGAppsNoGuiHook
    wrapQtAppsHook
    cmake
    qttools
    pkg-config
    ninja
  ] ++ lib.optionals stdenv.isLinux [
    # Since https://github.com/musescore/MuseScore/pull/13847/commits/685ac998
    # GTK3 is needed for file dialogs. Fixes crash with No GSettings schemas error.
    wrapGAppsHook3
  ];

  buildInputs = [