nixpkgs/pkgs/tools/graphics/yafaray-core/default.nix

39 lines
1.0 KiB
Nix
Raw Normal View History

2018-06-26 14:21:07 +01:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig, opencv, zlib
, libxml2, freetype, libjpeg, libtiff, swig, openexr
, ilmbase, boost165
, withPython ? true, python35
}:
stdenv.mkDerivation rec {
pname = "yafaray-core";
2020-04-09 11:03:01 +01:00
version = "3.4.1";
2018-06-26 14:21:07 +01:00
src = fetchFromGitHub {
owner = "YafaRay";
repo = "Core";
rev = "v${version}";
2020-04-09 11:03:01 +01:00
sha256 = "0ipkrgn5siad6y8naw1pgxkxas70l09g97vabyfbx1k67xrr4ldp";
2018-06-26 14:21:07 +01:00
};
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -isystem ${ilmbase.dev}/include/OpenEXR"
'';
buildInputs = [
cmake pkgconfig boost165 opencv zlib libxml2 freetype libjpeg libtiff
swig openexr ilmbase
] ++ stdenv.lib.optional withPython python35;
meta = with stdenv.lib; {
description = "A free, open source raytracer";
2020-04-09 11:03:01 +01:00
homepage = "http://www.yafaray.org";
2018-06-26 14:21:07 +01:00
maintainers = with maintainers; [ hodapp ];
license = licenses.lgpl21;
platforms = platforms.linux;
};
}
# TODO: Add optional Ruby support
# TODO: Add Qt support? (CMake looks for it, but what for?)