Unverified Commit 4069d470 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

fractal: fix image loading by applying glycin patch (#353845)

parent 4d3b8edd
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
, sqlite
, xdg-desktop-portal
, libseccomp
, glycin-loaders
}:

stdenv.mkDerivation rec {
@@ -44,6 +45,14 @@ stdenv.mkDerivation rec {
    };
  };

  # Dirty approach to add patches after cargoSetupPostUnpackHook
  # We should eventually use a cargo vendor patch hook instead
  preConfigure = ''
    pushd ../$(stripHash $cargoDeps)/glycin-2.*
      patch -p3 < ${glycin-loaders.passthru.glycinPathsPatch}
    popd
  '';

  nativeBuildInputs = [
    glib
    gtk4
@@ -77,6 +86,12 @@ stdenv.mkDerivation rec {
    gst-plugins-good
  ]);

  preFixup = ''
    gappsWrapperArgs+=(
      --prefix XDG_DATA_DIRS : "${glycin-loaders}/share"
    )
  '';

  passthru = {
    updateScript = nix-update-script { };
  };