2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-05-30 03:39:57 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, boost
|
|
|
|
, cmake
|
2021-06-01 18:08:53 +01:00
|
|
|
, giflib
|
2019-05-30 03:39:57 +01:00
|
|
|
, ilmbase
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
2021-06-24 01:33:50 +01:00
|
|
|
, opencolorio_1
|
2019-05-30 03:39:57 +01:00
|
|
|
, openexr
|
|
|
|
, robin-map
|
|
|
|
, unzip
|
2021-03-21 16:44:25 +00:00
|
|
|
, fmt
|
2019-05-30 03:39:57 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openimageio";
|
2021-08-11 00:35:31 +01:00
|
|
|
version = "2.2.17.0";
|
2019-05-30 03:39:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenImageIO";
|
|
|
|
repo = "oiio";
|
|
|
|
rev = "Release-${version}";
|
2021-08-11 00:35:31 +01:00
|
|
|
sha256 = "0jqpb1zci911wdm928addsljxx8zsh0gzbhv9vbw6man4wi93h6h";
|
2019-05-30 03:39:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
2021-06-01 18:08:53 +01:00
|
|
|
giflib
|
2019-05-30 03:39:57 +01:00
|
|
|
ilmbase
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libtiff
|
2021-06-24 01:33:50 +01:00
|
|
|
opencolorio_1
|
2019-05-30 03:39:57 +01:00
|
|
|
openexr
|
|
|
|
robin-map
|
2021-03-21 16:44:25 +00:00
|
|
|
fmt
|
2019-05-30 03:39:57 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|