f81e87b9bf
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/fmwizi71ki95gjzqrbcc64zspg3xik6d-openimageio-1.8.8-bin/bin/iinfo help` got 0 exit code - ran `/nix/store/fmwizi71ki95gjzqrbcc64zspg3xik6d-openimageio-1.8.8-bin/bin/maketx -v` and found version 1.8.8 - ran `/nix/store/fmwizi71ki95gjzqrbcc64zspg3xik6d-openimageio-1.8.8-bin/bin/oiiotool --help` got 0 exit code - ran `/nix/store/fmwizi71ki95gjzqrbcc64zspg3xik6d-openimageio-1.8.8-bin/bin/oiiotool --help` and found version 1.8.8 - found 1.8.8 with grep in /nix/store/fmwizi71ki95gjzqrbcc64zspg3xik6d-openimageio-1.8.8-bin - found 1.8.8 in filename of file in /nix/store/fmwizi71ki95gjzqrbcc64zspg3xik6d-openimageio-1.8.8-bin cc "@goibhniu"
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, boost, cmake, ilmbase, libjpeg, libpng, libtiff
|
|
, opencolorio, openexr, unzip
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "openimageio-${version}";
|
|
version = "1.8.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenImageIO";
|
|
repo = "oiio";
|
|
rev = "Release-${version}";
|
|
sha256 = "1jn4ph7giwxr65xxbm59i03wywnmxkqnpvqp0kcajl4k48vq3wkr";
|
|
};
|
|
|
|
outputs = [ "bin" "out" "dev" "doc" ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
boost ilmbase libjpeg libpng
|
|
libtiff opencolorio openexr
|
|
unzip
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DUSE_PYTHON=OFF"
|
|
];
|
|
|
|
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;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.openimageio.org;
|
|
description = "A library and tools for reading and writing images";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.goibhniu ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|