Merge pull request #42613 from Hodapp87/yafaray
yafaray-core: init at v3.3.0
This commit is contained in:
commit
a7df5d5cdf
2 changed files with 40 additions and 0 deletions
38
pkgs/tools/graphics/yafaray-core/default.nix
Normal file
38
pkgs/tools/graphics/yafaray-core/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, opencv, zlib
|
||||
, libxml2, freetype, libjpeg, libtiff, swig, openexr
|
||||
, ilmbase, boost165
|
||||
, withPython ? true, python35
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "yafaray-core-${version}";
|
||||
version = "v3.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "YafaRay";
|
||||
repo = "Core";
|
||||
rev = "${version}";
|
||||
sha256 = "04p3nlg1rv617qf8v1nzjl6f0w43rvi8w9j6l6ck4bvl77v6cjp6";
|
||||
};
|
||||
|
||||
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";
|
||||
homepage = http://www.yafaray.org;
|
||||
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?)
|
|
@ -5954,6 +5954,8 @@ with pkgs;
|
|||
|
||||
xwinwrap = callPackage ../tools/X11/xwinwrap {};
|
||||
|
||||
yafaray-core = callPackage ../tools/graphics/yafaray-core { };
|
||||
|
||||
yaft = callPackage ../applications/misc/yaft { };
|
||||
|
||||
yarn = callPackage ../development/tools/yarn { };
|
||||
|
|
Loading…
Reference in a new issue