openimageio2: init at 2.0.8
This commit is contained in:
parent
4a40504be4
commit
488d23fa9c
2 changed files with 62 additions and 0 deletions
60
pkgs/applications/graphics/openimageio/2.x.nix
Normal file
60
pkgs/applications/graphics/openimageio/2.x.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, boost
|
||||
, cmake
|
||||
, ilmbase
|
||||
, libjpeg
|
||||
, libpng
|
||||
, libtiff
|
||||
, opencolorio
|
||||
, openexr
|
||||
, robin-map
|
||||
, unzip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openimageio";
|
||||
version = "2.0.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenImageIO";
|
||||
repo = "oiio";
|
||||
rev = "Release-${version}";
|
||||
sha256 = "0nk72h7q1n664b268zkhibb7a3i7fb3nl2z7fg31ys5r9zlq6mnp";
|
||||
};
|
||||
|
||||
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_BINDIR=${placeholder "bin"}/bin"
|
||||
"-DCMAKE_INSTALL_INCLUDEDIR=${placeholder "dev"}/include"
|
||||
"-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;
|
||||
};
|
||||
}
|
|
@ -19391,6 +19391,8 @@ in
|
|||
stdenv = overrideCC stdenv gcc6;
|
||||
};
|
||||
|
||||
openimageio2 = callPackage ../applications/graphics/openimageio/2.x.nix { };
|
||||
|
||||
openjump = callPackage ../applications/misc/openjump { };
|
||||
|
||||
openorienteering-mapper = libsForQt5.callPackage ../applications/gis/openorienteering-mapper { };
|
||||
|
|
Loading…
Reference in a new issue