2014-09-23 11:33:30 +02:00
|
|
|
{ stdenv, fetchurl, unzip, ftgl, glew, asciidoc
|
2012-03-14 22:57:32 +01:00
|
|
|
, cmake, mesa, zlib, python, expat, libxml2, libsigcxx, libuuid, freetype
|
|
|
|
, libpng, boost, doxygen, cairomm, pkgconfig, imagemagick, libjpeg, libtiff
|
2014-09-23 11:33:30 +02:00
|
|
|
, gettext, intltool, perl, gtkmm, glibmm, gtkglext, pangox_compat, libXmu }:
|
2012-01-26 14:12:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-23 11:33:30 +02:00
|
|
|
version = "0.8.0.3";
|
2012-01-26 14:12:36 +01:00
|
|
|
name = "k3d-${version}";
|
|
|
|
src = fetchurl {
|
2014-09-23 11:33:30 +02:00
|
|
|
url = "https://github.com/K-3D/k3d/archive/${name}.zip";
|
|
|
|
sha256 = "09ywwvlk8hh1357pnal96kc40ma4jq7776hqk0609rgz13s6babp";
|
2012-01-26 14:12:36 +01:00
|
|
|
};
|
2014-09-23 11:33:30 +02:00
|
|
|
|
|
|
|
cmakeFlags = "-DK3D_BUILD_DOCS=false -DK3D_BUILD_GUIDE=false";
|
2012-01-26 14:12:36 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/build/lib"
|
2014-09-23 11:33:30 +02:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$(echo ${gtkglext}/include/gtkglext-*) -I$(echo ${gtkglext}/lib/gtkglext-*/include)"
|
2012-01-26 14:12:36 +01:00
|
|
|
'';
|
|
|
|
|
2012-03-14 22:57:32 +01:00
|
|
|
buildInputs = [
|
2012-01-26 14:12:36 +01:00
|
|
|
cmake mesa zlib python expat libxml2 libsigcxx libuuid freetype libpng
|
2014-09-23 11:33:30 +02:00
|
|
|
boost boost doxygen cairomm pkgconfig imagemagick libjpeg libtiff
|
|
|
|
gettext intltool perl unzip ftgl glew asciidoc
|
2014-08-30 22:25:48 +02:00
|
|
|
gtkmm glibmm gtkglext pangox_compat libXmu
|
2012-01-26 14:12:36 +01:00
|
|
|
];
|
|
|
|
|
2014-08-31 10:52:59 +02:00
|
|
|
#doCheck = false;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2012-01-26 14:12:36 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A 3D editor with support for procedural editing";
|
|
|
|
homepage = "http://k-3d.org/";
|
|
|
|
platforms = with stdenv.lib.platforms;
|
|
|
|
linux;
|
2012-03-15 00:34:30 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers;
|
2012-01-26 14:12:36 +01:00
|
|
|
[raskin];
|
|
|
|
};
|
|
|
|
}
|