2010-05-08 21:25:56 +00:00
|
|
|
{stdenv, fetchurl, cmake, mesa, gettext, python, libjpeg, libpng, zlib, openal, SDL
|
|
|
|
, openexr, libsamplerate, libXi, libtiff, ilmbase }:
|
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
stdenv.mkDerivation {
|
2010-05-08 21:25:56 +00:00
|
|
|
name = "blender-2.50a";
|
2007-12-01 18:05:26 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2010-05-08 21:25:56 +00:00
|
|
|
url = http://download.blender.org/source/blender-2.50a1.tar.gz;
|
|
|
|
sha256 = "1cik05fmf9b8z3qpwsm6q9h1ia87w1piz87hxhfs24jw6l5pyiwr";
|
2007-12-01 18:05:26 +00:00
|
|
|
};
|
|
|
|
|
2010-05-08 21:25:56 +00:00
|
|
|
buildInputs = [ cmake mesa gettext python libjpeg libpng zlib openal SDL openexr libsamplerate
|
|
|
|
libXi libtiff ilmbase ];
|
2007-12-01 18:05:26 +00:00
|
|
|
|
2010-05-08 21:25:56 +00:00
|
|
|
cmakeFlags = [ "-DOPENEXR_INC=${openexr}/include/OpenEXR" "-DWITH_OPENCOLLADA=OFF"
|
|
|
|
"-DPYTHON_LIBPATH=${python}/lib" ];
|
2007-12-01 18:05:26 +00:00
|
|
|
|
2010-05-08 21:25:56 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-iquote ${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix}";
|
2008-05-14 13:39:20 +00:00
|
|
|
|
2010-05-08 21:25:56 +00:00
|
|
|
patches = [ ./python-chmod.patch ];
|
2007-12-01 18:05:26 +00:00
|
|
|
|
|
|
|
meta = {
|
2010-05-08 21:25:56 +00: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 18:05:26 +00:00
|
|
|
}
|