forked from mirrors/nixpkgs
e523a7096a
fails to build on aarch64 at least
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig, opencv, zlib
|
|
, libxml2, freetype, libjpeg, libtiff, swig, openexr
|
|
, ilmbase, boost165
|
|
, withPython ? true, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yafaray-core";
|
|
version = "3.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "YafaRay";
|
|
repo = "Core";
|
|
rev = "v${version}";
|
|
sha256 = "05r08ynm6p9jq9l3v1v3lqkrfx3bm6zlqcxm1yk7mdv1zv2yxikd";
|
|
};
|
|
|
|
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 python3;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A free, open source raytracer";
|
|
homepage = "http://www.yafaray.org";
|
|
maintainers = with maintainers; [ hodapp ];
|
|
license = licenses.lgpl21;
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|
|
|
|
# TODO: Add optional Ruby support
|
|
# TODO: Add Qt support? (CMake looks for it, but what for?)
|