linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / openexr / default.nix
blob4e04de30d6549ce69f8c6644a1246a9f7fdc7cef
1 { lib
2 , stdenv
3 , buildPackages
4 , fetchFromGitHub
5 , zlib
6 , ilmbase
7 , fetchpatch
8 , cmake
9 }:
11 stdenv.mkDerivation rec {
12   pname = "openexr";
13   version = "2.5.3";
15   outputs = [ "bin" "dev" "out" "doc" ];
17   src = fetchFromGitHub {
18     owner = "AcademySoftwareFoundation";
19     repo = "openexr";
20     rev = "v${version}";
21     sha256 = "xyYdRrwAYdnRZmErIK0tZspguqtrXvixO5+6nMDoOh8=";
22   };
24   patches = [
25     # Fix pkg-config paths
26     (fetchpatch {
27       url = "https://github.com/AcademySoftwareFoundation/openexr/commit/6442fb71a86c09fb0a8118b6dbd93bcec4883a3c.patch";
28       sha256 = "bwD5WTKPT4DjOJDnPXIvT5hJJkH0b71Vo7qupWO9nPA=";
29     })
30   ];
32   nativeBuildInputs = [ cmake ];
33   propagatedBuildInputs = [ ilmbase zlib ];
35   meta = with lib; {
36     description = "A high dynamic-range (HDR) image file format";
37     homepage = "https://www.openexr.com/";
38     license = licenses.bsd3;
39     platforms = platforms.all;
40   };