openimageio: synchronize expression with openimageio2

This commit is contained in:
Jan Tojnar 2019-05-30 04:44:30 +02:00
parent 488d23fa9c
commit fefd28f064
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -3,7 +3,7 @@
}:
stdenv.mkDerivation rec {
name = "openimageio-${version}";
pname = "openimageio";
version = "1.8.16";
src = fetchFromGitHub {
@ -15,28 +15,25 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "out" "dev" "doc" ];
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake unzip ];
buildInputs = [
boost ilmbase libjpeg libpng
libtiff opencolorio openexr
unzip
];
cmakeFlags = [
"-DUSE_PYTHON=OFF"
# GNUInstallDirs
"-DCMAKE_INSTALL_BINDIR=${placeholder "bin"}/bin"
];
preBuild = ''
makeFlags="ILMBASE_HOME=${ilmbase.dev} OPENEXR_HOME=${openexr.dev} USE_PYTHON=0
INSTALLDIR=$out dist_dir="
'';
postInstall = ''
mkdir -p $bin
mv $out/bin $bin/
'';
enableParallelBuilding = true;
makeFlags = [
"ILMBASE_HOME=${ilmbase.dev}"
"OPENEXR_HOME=${openexr.dev}"
"USE_PYTHON=0"
"INSTALLDIR=${placeholder "out"}"
"dist_dir="
];
meta = with stdenv.lib; {
homepage = http://www.openimageio.org;