libavif: fix cmake files (#424658)

This commit is contained in:
K900 2025-07-13 16:25:04 +03:00 committed by GitHub
commit 8664a9a841
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -98,7 +98,6 @@ stdenv.mkDerivation rec {
GDK_PIXBUF_MODULEDIR=${gdkPixbufModuleDir} \
GDK_PIXBUF_MODULE_FILE=${gdkPixbufModuleFile} \
gdk-pixbuf-query-loaders --update-cache
''
# Cross-compiled gdk-pixbuf doesn't support thumbnailers
+ lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
@ -107,6 +106,11 @@ stdenv.mkDerivation rec {
--set GDK_PIXBUF_MODULE_FILE ${gdkPixbufModuleFile}
'';
postFixup = ''
substituteInPlace $dev/lib/cmake/libavif/libavif-config.cmake \
--replace-fail "_IMPORT_PREFIX \"$out\"" "_IMPORT_PREFIX \"$dev\""
'';
meta = {
description = "C implementation of the AV1 Image File Format";
longDescription = ''

View File

@ -15,8 +15,7 @@ mkKdeDerivation {
extraBuildInputs = [
libheif
libjxl
# FIXME: cmake files are broken, disabled for now
# libavif
libavif
libraw
openexr
];