2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-05-30 03:39:57 +01:00
|
|
|
, fetchFromGitHub
|
2019-12-24 05:33:23 +00:00
|
|
|
, fetchpatch
|
2019-05-30 03:39:57 +01:00
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, ilmbase
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, opencolorio
|
|
|
|
, openexr
|
|
|
|
, robin-map
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openimageio";
|
2019-12-24 05:33:23 +00:00
|
|
|
version = "2.1.9.0";
|
2019-05-30 03:39:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenImageIO";
|
|
|
|
repo = "oiio";
|
|
|
|
rev = "Release-${version}";
|
2019-12-24 05:33:23 +00:00
|
|
|
sha256 = "1bbxx3bcc5jlb90ffxbk29gb8227097rdr8vg97vj9axw2mjd5si";
|
2019-05-30 03:39:57 +01:00
|
|
|
};
|
|
|
|
|
2019-12-24 05:33:23 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/OpenImageIO/oiio/pull/2441/commits/e9bdd69596103edf41b659ad8ab0ca4ce002f6f5.patch";
|
|
|
|
sha256 = "0x1wmjf1jrm19d1izhs1cs3y1if9al1zx48lahkfswyjag3r5dn0";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-05-30 03:39:57 +01:00
|
|
|
outputs = [ "bin" "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
ilmbase
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libtiff
|
|
|
|
opencolorio
|
|
|
|
openexr
|
|
|
|
robin-map
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_PYTHON=OFF"
|
|
|
|
"-DUSE_QT=OFF"
|
|
|
|
# GNUInstallDirs
|
2021-01-19 06:50:56 +00:00
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib" # needs relative path for pkg-config
|
2019-05-30 03:39:57 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.openimageio.org";
|
2019-05-30 03:39:57 +01:00
|
|
|
description = "A library and tools for reading and writing images";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ goibhniu jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|