24 stdenv.mkDerivation rec {
28 outputs = [ "bin" "out" "dev" "man" ];
30 src = fetchFromGitHub {
34 hash = "sha256-Z21E2b4E9jGtwR1RpFMAbGsWFw6jXn++WexlzdoyZzE=";
53 # Fix installation path for gdk-pixbuf module
54 PKG_CONFIG_GDK_PIXBUF_2_0_GDK_PIXBUF_MODULEDIR = "${placeholder "out"}/${gdk-pixbuf.moduleDir}";
56 # Wrong include path in .cmake. It's a bit difficult to patch because of special characters.
58 sed '/^ INTERFACE_INCLUDE_DIRECTORIES/s|"[^"]*/include"|"${placeholder "dev"}/include"|' \
59 -i "$dev"/lib/cmake/libheif/libheif-config.cmake
63 inherit gimp imagemagick imlib2Full imv vips;
64 inherit (python3Packages) pillow-heif;
68 homepage = "http://www.libheif.org/";
69 description = "ISO/IEC 23008-12:2017 HEIF image file format decoder and encoder";
70 license = lib.licenses.lgpl3Plus;
71 platforms = lib.platforms.unix;
72 maintainers = with lib.maintainers; [ gebner ];