mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
59 lines
1,022 B
Nix
59 lines
1,022 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, boost
|
|
, cmake
|
|
, ilmbase
|
|
, libjpeg
|
|
, libpng
|
|
, libtiff
|
|
, opencolorio
|
|
, openexr
|
|
, robin-map
|
|
, unzip
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openimageio";
|
|
version = "2.0.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenImageIO";
|
|
repo = "oiio";
|
|
rev = "Release-${version}";
|
|
sha256 = "0v3k33jb0glb30jdhq3c732a9dxvnidaclz6b2wpqwik8l3658mj";
|
|
};
|
|
|
|
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
|
|
"-DCMAKE_INSTALL_LIBDIR=lib" # needs relative path for pkgconfig
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.openimageio.org;
|
|
description = "A library and tools for reading and writing images";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ goibhniu jtojnar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|