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

67 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv
2019-05-30 03:39:57 +01:00
, fetchFromGitHub
2019-12-24 05:33:23 +00:00
, fetchpatch
2019-05-30 03:39:57 +01:00
, boost
, cmake
, ilmbase
, libjpeg
, libpng
, libtiff
, opencolorio
, openexr
, robin-map
, unzip
}:
stdenv.mkDerivation rec {
pname = "openimageio";
2019-12-24 05:33:23 +00:00
version = "2.1.9.0";
2019-05-30 03:39:57 +01:00
src = fetchFromGitHub {
owner = "OpenImageIO";
repo = "oiio";
rev = "Release-${version}";
2019-12-24 05:33:23 +00:00
sha256 = "1bbxx3bcc5jlb90ffxbk29gb8227097rdr8vg97vj9axw2mjd5si";
2019-05-30 03:39:57 +01:00
};
2019-12-24 05:33:23 +00:00
patches = [
(fetchpatch {
url = "https://github.com/OpenImageIO/oiio/pull/2441/commits/e9bdd69596103edf41b659ad8ab0ca4ce002f6f5.patch";
sha256 = "0x1wmjf1jrm19d1izhs1cs3y1if9al1zx48lahkfswyjag3r5dn0";
})
];
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
];
cmakeFlags = [
"-DUSE_PYTHON=OFF"
"-DUSE_QT=OFF"
# GNUInstallDirs
"-DCMAKE_INSTALL_LIBDIR=lib" # needs relative path for pkgconfig
];
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;
};
}