3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/kde-frameworks/kimageformats.nix

24 lines
506 B
Nix

{
mkDerivation, lib,
extra-cmake-modules,
ilmbase, karchive, openexr, libavif, libheif, qtbase
}:
let inherit (lib) getDev; in
mkDerivation {
pname = "kimageformats";
nativeBuildInputs = [ extra-cmake-modules ];
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";
};
}