plasma5Packages.kimageformats: enable HEIF/HEIC

This commit is contained in:
ajs124 2022-05-13 12:12:39 +02:00
parent 9b1a8d0852
commit 3fc4607b5e

View file

@ -1,7 +1,7 @@
{
mkDerivation, lib,
extra-cmake-modules,
ilmbase, karchive, openexr, libavif, qtbase
ilmbase, karchive, openexr, libavif, libheif, qtbase
}:
let inherit (lib) getDev; in
@ -10,9 +10,12 @@ mkDerivation {
pname = "kimageformats";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ karchive openexr libavif qtbase ];
buildInputs = [ karchive openexr libavif libheif qtbase ];
outputs = [ "out" ]; # plugins only
CXXFLAGS = "-I${getDev ilmbase}/include/OpenEXR";
cmakeFlags = [
"-DKIMAGEFORMATS_HEIF=ON"
];
meta = with lib; {
broken = versionOlder qtbase.version "5.14";