nixpkgs/pkgs/tools/graphics/yafaray-core/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

39 lines
1 KiB
Nix

{ stdenv, fetchFromGitHub, cmake, pkgconfig, opencv, zlib
, libxml2, freetype, libjpeg, libtiff, swig, openexr
, ilmbase, boost165
, withPython ? true, python35
}:
stdenv.mkDerivation rec {
pname = "yafaray-core";
version = "3.3.0";
src = fetchFromGitHub {
owner = "YafaRay";
repo = "Core";
rev = "v${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?)