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

40 lines
1.1 KiB
Nix
Raw Normal View History

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