3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/blender/default.nix
Lluís Batlle i Rossell d770597dda I wrote a bad 'name' for blender before. Fixing.
svn path=/nixpkgs/trunk/; revision=21674
2010-05-08 22:33:20 +00:00

30 lines
1 KiB
Nix

{stdenv, fetchurl, cmake, mesa, gettext, python, libjpeg, libpng, zlib, openal, SDL
, openexr, libsamplerate, libXi, libtiff, ilmbase }:
stdenv.mkDerivation rec {
name = "blender-2.50a1";
src = fetchurl {
url = "http://download.blender.org/source/${name}.tar.gz";
sha256 = "1cik05fmf9b8z3qpwsm6q9h1ia87w1piz87hxhfs24jw6l5pyiwr";
};
buildInputs = [ cmake mesa gettext python libjpeg libpng zlib openal SDL openexr libsamplerate
libXi libtiff ilmbase ];
cmakeFlags = [ "-DOPENEXR_INC=${openexr}/include/OpenEXR" "-DWITH_OPENCOLLADA=OFF"
"-DPYTHON_LIBPATH=${python}/lib" ];
NIX_CFLAGS_COMPILE = "-iquote ${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix}";
patches = [ ./python-chmod.patch ];
meta = {
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+";
};
}