2011-04-19 13:17:17 -07:00
|
|
|
{ stdenv, fetchurl, SDL, cmake, gettext, ilmbase, libXi, libjpeg,
|
|
|
|
libpng, libsamplerate, libtiff, mesa, openal, openexr, openjpeg,
|
2012-02-26 12:47:12 -08:00
|
|
|
python, zlib, boost }:
|
2010-05-08 14:25:56 -07:00
|
|
|
|
2010-05-08 15:33:20 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2012-07-07 02:30:26 -07:00
|
|
|
name = "blender-2.63a";
|
2007-12-01 10:05:26 -08:00
|
|
|
|
2008-01-30 09:20:48 -08:00
|
|
|
src = fetchurl {
|
2010-05-08 15:33:20 -07:00
|
|
|
url = "http://download.blender.org/source/${name}.tar.gz";
|
2012-07-07 02:30:26 -07:00
|
|
|
sha256 = "c479b1abfe5fd8a1a5d04b8d21fdbc0fc960d7855b24785b888c09792bca4c1a";
|
2007-12-01 10:05:26 -08:00
|
|
|
};
|
|
|
|
|
2011-04-19 13:17:17 -07:00
|
|
|
buildInputs = [ cmake mesa gettext python libjpeg libpng zlib openal
|
2012-02-26 12:47:12 -08:00
|
|
|
SDL openexr libsamplerate libXi libtiff ilmbase openjpeg boost ];
|
2007-12-01 10:05:26 -08:00
|
|
|
|
2012-02-26 12:47:12 -08:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DOPENEXR_INC=${openexr}/include/OpenEXR"
|
|
|
|
"-DWITH_OPENCOLLADA=OFF"
|
|
|
|
"-DWITH_INSTALL_PORTABLE=OFF"
|
|
|
|
"-DPYTHON_LIBPATH=${python}/lib"
|
|
|
|
];
|
2008-05-14 06:39:20 -07:00
|
|
|
|
2011-04-19 13:17:17 -07:00
|
|
|
NIX_CFLAGS_COMPILE = "-iquote ${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix}";
|
2007-12-01 10:05:26 -08:00
|
|
|
|
2012-07-07 02:30:26 -07:00
|
|
|
meta = {
|
2010-05-08 14:25:56 -07:00
|
|
|
description = "3D Creation/Animation/Publishing System";
|
|
|
|
homepage = http://www.blender.org;
|
|
|
|
# They comment two licenses: GPLv2 and Blender License, but they
|
|
|
|
# say: "We've decided to cancel the BL offering for an indefinite period."
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
2007-12-01 10:05:26 -08:00
|
|
|
}
|