2018-06-26 14:21:07 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, opencv, zlib
|
|
|
|
, libxml2, freetype, libjpeg, libtiff, swig, openexr
|
|
|
|
, ilmbase, boost165
|
2020-06-07 13:55:45 +01:00
|
|
|
, withPython ? true, python3
|
2018-06-26 14:21:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "yafaray-core";
|
2020-07-12 16:22:35 +01:00
|
|
|
version = "3.5.0";
|
2018-06-26 14:21:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "YafaRay";
|
|
|
|
repo = "Core";
|
2018-07-19 20:38:15 +01:00
|
|
|
rev = "v${version}";
|
2020-07-12 16:22:35 +01:00
|
|
|
sha256 = "05r08ynm6p9jq9l3v1v3lqkrfx3bm6zlqcxm1yk7mdv1zv2yxikd";
|
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
|
2020-06-07 13:55:45 +01:00
|
|
|
] ++ stdenv.lib.optional withPython python3;
|
2018-06-26 14:21:07 +01:00
|
|
|
|
|
|
|
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;
|
2020-09-06 13:29:12 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2018-06-26 14:21:07 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
# TODO: Add optional Ruby support
|
|
|
|
# TODO: Add Qt support? (CMake looks for it, but what for?)
|