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

This commit is contained in:
Aleksana 2024-11-06 13:12:53 +08:00 committed by GitHub
parent 4d3b8eddbd
commit 4069d47036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 { };
};