2016-11-05 17:14:12 +00:00
|
|
|
{
|
2021-07-06 16:10:14 +00:00
|
|
|
mkDerivation, lib,
|
2017-02-26 12:49:15 +00:00
|
|
|
extra-cmake-modules,
|
2023-02-07 13:49:20 +00:00
|
|
|
ilmbase, karchive, openexr, libavif, libheif, libjxl, libraw, qtbase
|
2016-04-21 15:32:21 +00:00
|
|
|
}:
|
|
|
|
|
2017-05-22 18:49:07 +00:00
|
|
|
let inherit (lib) getDev; in
|
|
|
|
|
2017-05-15 17:05:35 +00:00
|
|
|
mkDerivation {
|
2022-02-23 17:28:27 +00:00
|
|
|
pname = "kimageformats";
|
2021-06-28 15:19:39 +00:00
|
|
|
|
2017-02-26 12:49:15 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2023-02-07 13:49:20 +00:00
|
|
|
buildInputs = [ karchive openexr libavif libheif libjxl libraw qtbase ];
|
2017-05-22 18:49:07 +00:00
|
|
|
outputs = [ "out" ]; # plugins only
|
2018-01-16 08:52:04 +00:00
|
|
|
CXXFLAGS = "-I${getDev ilmbase}/include/OpenEXR";
|
2022-05-13 10:12:39 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DKIMAGEFORMATS_HEIF=ON"
|
|
|
|
];
|
2016-04-21 15:32:21 +00:00
|
|
|
}
|