Commit 49770fc7 authored by İlkecan Bozdoğan's avatar İlkecan Bozdoğan
Browse files

shotcut: use wrapGAppsHook3 to prevent coredump

parent 7bc16ffb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
  cmake,
  gitUpdater,
  ffmpeg,
  wrapGAppsHook3,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -32,6 +33,7 @@ stdenv.mkDerivation (finalAttrs: {
    pkg-config
    cmake
    qt6.wrapQtAppsHook
    wrapGAppsHook3
  ];

  buildInputs = [
@@ -60,6 +62,8 @@ stdenv.mkDerivation (finalAttrs: {
    })
  ];

  dontWrapGApps = true;

  qtWrapperArgs = [
    "--set FREI0R_PATH ${frei0r}/lib/frei0r-1"
    "--set LADSPA_PATH ${ladspaPlugins}/lib/ladspa"
@@ -68,6 +72,10 @@ stdenv.mkDerivation (finalAttrs: {
    }"
  ];

  preFixup = ''
    qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';

  postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
    mkdir $out/Applications $out/bin
    mv $out/Shotcut.app $out/Applications/Shotcut.app