2016-11-06 03:01:39 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, unzip, ftgl, glew, asciidoc
|
2012-03-14 21:57:32 +00:00
|
|
|
, cmake, mesa, zlib, python, expat, libxml2, libsigcxx, libuuid, freetype
|
|
|
|
, libpng, boost, doxygen, cairomm, pkgconfig, imagemagick, libjpeg, libtiff
|
2016-09-11 22:24:51 +01:00
|
|
|
, gettext, intltool, perl, gtkmm2, glibmm, gtkglext, pangox_compat, libXmu }:
|
2012-01-26 13:12:36 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-11-06 03:01:39 +00:00
|
|
|
version = "0.8.0.6";
|
2012-01-26 13:12:36 +00:00
|
|
|
name = "k3d-${version}";
|
2016-09-03 00:59:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "K-3D";
|
|
|
|
repo = "k3d";
|
|
|
|
rev = name;
|
2016-11-06 03:01:39 +00:00
|
|
|
sha256 = "0vdjjg6h8mxm2n8mvkkg2mvd27jn2xx90hnmx23cbd35mpz9p4aa";
|
2012-01-26 13:12:36 +00:00
|
|
|
};
|
2016-11-06 03:01:39 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch { /* glibmm 2.50 fix */
|
|
|
|
url = https://github.com/K-3D/k3d/commit/c65889d0652490d88a573e47de7a9324bf27bff2.patch;
|
|
|
|
sha256 = "162icv1hicr2dirkb9ijacvg9bhz5j30yfwg7b45ijavk8rns62j";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2014-09-23 10:33:30 +01:00
|
|
|
cmakeFlags = "-DK3D_BUILD_DOCS=false -DK3D_BUILD_GUIDE=false";
|
2012-01-26 13:12:36 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/build/lib"
|
2014-09-23 10:33:30 +01:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$(echo ${gtkglext}/include/gtkglext-*) -I$(echo ${gtkglext}/lib/gtkglext-*/include)"
|
2012-01-26 13:12:36 +00:00
|
|
|
'';
|
|
|
|
|
2012-03-14 21:57:32 +00:00
|
|
|
buildInputs = [
|
2012-01-26 13:12:36 +00:00
|
|
|
cmake mesa zlib python expat libxml2 libsigcxx libuuid freetype libpng
|
2014-09-23 10:33:30 +01:00
|
|
|
boost boost doxygen cairomm pkgconfig imagemagick libjpeg libtiff
|
|
|
|
gettext intltool perl unzip ftgl glew asciidoc
|
2016-09-11 22:24:51 +01:00
|
|
|
gtkmm2 glibmm gtkglext pangox_compat libXmu
|
2012-01-26 13:12:36 +00:00
|
|
|
];
|
|
|
|
|
2014-08-31 09:52:59 +01:00
|
|
|
#doCheck = false;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2012-01-26 13:12:36 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A 3D editor with support for procedural editing";
|
|
|
|
homepage = "http://k-3d.org/";
|
|
|
|
platforms = with stdenv.lib.platforms;
|
|
|
|
linux;
|
2012-03-14 23:34:30 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers;
|
2012-01-26 13:12:36 +00:00
|
|
|
[raskin];
|
|
|
|
};
|
|
|
|
}
|