1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/applications/graphics/openimageio/default.nix
2017-03-18 20:22:54 -05:00

49 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, boost, cmake, ilmbase, libjpeg, libpng, libtiff
, opencolorio, openexr, unzip
}:
stdenv.mkDerivation rec {
name = "openimageio-${version}";
version = "1.7.12";
src = fetchFromGitHub {
owner = "OpenImageIO";
repo = "oiio";
rev = "Release-${version}";
sha256 = "1ganx4f7zis5lkxxrwc83dbgngaxww2846bsc4vrg5dhjnns6n4y";
};
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;
};
}