Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
19 lines
460 B
Nix
19 lines
460 B
Nix
{
|
|
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"
|
|
];
|
|
}
|