2020-04-28 18:22:31 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, zlib
|
|
|
|
, ilmbase
|
2020-07-30 01:35:18 +01:00
|
|
|
, fetchpatch
|
2020-04-28 18:22:31 +01:00
|
|
|
, cmake
|
|
|
|
}:
|
2020-07-30 01:35:18 +01:00
|
|
|
|
2010-07-28 19:01:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "openexr";
|
2021-07-06 17:39:04 +01:00
|
|
|
version = "2.5.7";
|
2020-08-11 19:13:48 +01:00
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "doc" ];
|
2015-02-19 02:02:05 +00:00
|
|
|
|
2020-04-26 22:29:17 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AcademySoftwareFoundation";
|
|
|
|
repo = "openexr";
|
|
|
|
rev = "v${version}";
|
2021-07-06 17:39:04 +01:00
|
|
|
sha256 = "1vja0rbilcd1wn184w8nbcmck00n7bfwlddwiaxw8dhj64nx4468";
|
2015-07-02 13:27:47 +01:00
|
|
|
};
|
2015-02-19 02:02:05 +00:00
|
|
|
|
2020-08-11 19:13:48 +01:00
|
|
|
patches = [
|
|
|
|
# Fix pkg-config paths
|
|
|
|
(fetchpatch {
|
2021-07-06 17:39:04 +01:00
|
|
|
url = "https://github.com/AcademySoftwareFoundation/openexr/commit/2f19a01923885fda75ec9d19332de080ec7102bd.patch";
|
|
|
|
sha256 = "1yxmrdzq1x1911wdzwnzr29jmg2r4wd4yx3vhjn0y5dpny0ri5y5";
|
2020-08-11 19:13:48 +01:00
|
|
|
})
|
|
|
|
];
|
2015-03-31 06:27:36 +01:00
|
|
|
|
2020-08-13 00:38:37 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
propagatedBuildInputs = [ ilmbase zlib ];
|
2015-07-02 13:27:47 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-11-17 08:43:55 +00:00
|
|
|
description = "A high dynamic-range (HDR) image file format";
|
|
|
|
homepage = "https://www.openexr.com/";
|
2015-02-19 02:02:05 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2005-11-12 22:04:57 +00:00
|
|
|
}
|