about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/kde-frameworks/kimageformats.nix
blob: 5954d56e6cca6b08a5defefc5192d99ab31cff2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  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"
  ];
}