about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/kde-frameworks/kimageformats.nix
blob: 4ad3ba741008831e928b500fa2ff590a74e8c7a2 (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
24
{
  mkDerivation, lib, fetchpatch,
  extra-cmake-modules,
  ilmbase, karchive, openexr, libavif, qtbase
}:

let inherit (lib) getDev; in

mkDerivation {
  name = "kimageformats";

  patches = [
    (fetchpatch { # included in kimageformats >= 5.83
      name = "avif-0.9.2.diff";
      url = "https://invent.kde.org/frameworks/kimageformats/-/commit/bf3f94da766d66a0470ab744dbe1ced4697b572d.diff";
      sha256 = "18d67l5kj9sv88jdpi061k9rl3adzkx9l51ng7saylrkfddwc3ig";
    })
  ];

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