3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/openimageio/2.x.nix

61 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2019-05-30 03:39:57 +01:00
, fetchFromGitHub
, boost
, cmake
, ilmbase
, libjpeg
, libpng
, libtiff
, opencolorio
, openexr
, robin-map
, unzip
2021-03-21 16:44:25 +00:00
, fmt
2019-05-30 03:39:57 +01:00
}:
stdenv.mkDerivation rec {
pname = "openimageio";
2021-03-21 16:44:25 +00:00
version = "2.2.12.0";
2019-05-30 03:39:57 +01:00
src = fetchFromGitHub {
owner = "OpenImageIO";
repo = "oiio";
rev = "Release-${version}";
2021-03-21 16:44:25 +00:00
sha256 = "16z8lnsqhljbfaarfwx9rc95p0a9wxf4p271j6kxdfknjb88p56i";
2019-05-30 03:39:57 +01:00
};
outputs = [ "bin" "out" "dev" "doc" ];
nativeBuildInputs = [
cmake
unzip
];
buildInputs = [
boost
ilmbase
libjpeg
libpng
libtiff
opencolorio
openexr
robin-map
2021-03-21 16:44:25 +00:00
fmt
2019-05-30 03:39:57 +01:00
];
cmakeFlags = [
"-DUSE_PYTHON=OFF"
"-DUSE_QT=OFF"
# GNUInstallDirs
"-DCMAKE_INSTALL_LIBDIR=lib" # needs relative path for pkg-config
2019-05-30 03:39:57 +01:00
];
meta = with lib; {
homepage = "http://www.openimageio.org";
2019-05-30 03:39:57 +01:00
description = "A library and tools for reading and writing images";
license = licenses.bsd3;
maintainers = with maintainers; [ goibhniu jtojnar ];
platforms = platforms.unix;
};
}