2011-04-19 21:17:17 +01:00
|
|
|
{ stdenv, fetchurl, SDL, cmake, gettext, ilmbase, libXi, libjpeg,
|
|
|
|
libpng, libsamplerate, libtiff, mesa, openal, openexr, openjpeg,
|
|
|
|
python, zlib }:
|
2010-05-08 22:25:56 +01:00
|
|
|
|
2010-05-08 23:33:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-04-19 21:17:17 +01:00
|
|
|
name = "blender-2.57";
|
2007-12-01 18:05:26 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2010-05-08 23:33:20 +01:00
|
|
|
url = "http://download.blender.org/source/${name}.tar.gz";
|
2011-04-19 21:17:17 +01:00
|
|
|
sha256 = "1f4l0zkfmbd8ydzwvmb5jw89y7ywd9k8m2f1b3hrdpgjcqhq3lcb";
|
2007-12-01 18:05:26 +00:00
|
|
|
};
|
|
|
|
|
2011-04-19 21:17:17 +01:00
|
|
|
buildInputs = [ cmake mesa gettext python libjpeg libpng zlib openal
|
|
|
|
SDL openexr libsamplerate libXi libtiff ilmbase openjpeg ];
|
2007-12-01 18:05:26 +00:00
|
|
|
|
2011-04-19 21:17:17 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -e "s@/usr/local@${python}@" -i build_files/cmake/FindPythonLibsUnix.cmake
|
|
|
|
'';
|
2007-12-01 18:05:26 +00:00
|
|
|
|
2011-04-19 21:17:17 +01:00
|
|
|
cmakeFlags = [ "-DOPENEXR_INC=${openexr}/include/OpenEXR"
|
|
|
|
"-DWITH_OPENCOLLADA=OFF" "-DWITH_INSTALL_PORTABLE=OFF"];
|
2008-05-14 14:39:20 +01:00
|
|
|
|
2011-04-19 21:17:17 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-iquote ${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix}";
|
2007-12-01 18:05:26 +00:00
|
|
|
|
|
|
|
meta = {
|
2010-05-08 22:25:56 +01: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
|
|
|
}
|