about summary refs log tree commit diff
path: root/pkgs/development/libraries/kde-frameworks/kimageformats.nix
blob: beec3e13cf715cc86ecd9fea6ccf0789295d109d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  mkDerivation, lib,
  extra-cmake-modules,
  ilmbase, karchive, openexr, libavif, libheif, libjxl, libraw, qtbase
}:

let inherit (lib) getDev; in

mkDerivation {
  pname = "kimageformats";

  nativeBuildInputs = [ extra-cmake-modules ];
  buildInputs = [ karchive openexr libavif libheif libjxl libraw qtbase ];
  outputs = [ "out" ]; # plugins only
  CXXFLAGS = "-I${getDev ilmbase}/include/OpenEXR";
  cmakeFlags = [
    "-DKIMAGEFORMATS_HEIF=ON"
  ];

  meta = with lib; {
    broken = versionOlder qtbase.version "5.14";
  };
}