2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, ftgl, glew, asciidoc
|
2019-11-10 17:44:34 +01:00
|
|
|
, cmake, ninja, libGLU, libGL, zlib, python, expat, libxml2, libsigcxx, libuuid, freetype
|
2019-12-02 23:14:12 +01:00
|
|
|
, libpng, boost, doxygen, cairomm, pkgconfig, libjpeg, libtiff
|
2019-12-19 00:49:14 +01:00
|
|
|
, gettext, intltool, perl, gtkmm2, glibmm, gtkglext, libXmu }:
|
2012-01-26 14:12:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-11-06 04:01:39 +01:00
|
|
|
version = "0.8.0.6";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "k3d";
|
2016-09-03 01:59:23 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "K-3D";
|
|
|
|
repo = "k3d";
|
2019-08-15 14:41:18 +02:00
|
|
|
rev = "${pname}-${version}";
|
2016-11-06 04:01:39 +01:00
|
|
|
sha256 = "0vdjjg6h8mxm2n8mvkkg2mvd27jn2xx90hnmx23cbd35mpz9p4aa";
|
2012-01-26 14:12:36 +01:00
|
|
|
};
|
2016-11-06 04:01:39 +01:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch { /* glibmm 2.50 fix */
|
|
|
|
url = https://github.com/K-3D/k3d/commit/c65889d0652490d88a573e47de7a9324bf27bff2.patch;
|
|
|
|
sha256 = "162icv1hicr2dirkb9ijacvg9bhz5j30yfwg7b45ijavk8rns62j";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-04-15 17:20:52 +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"
|
|
|
|
'';
|
|
|
|
|
2018-04-15 17:20:52 +02:00
|
|
|
nativeBuildInputs = [ cmake ninja gettext intltool doxygen pkgconfig perl asciidoc ];
|
|
|
|
|
2012-03-14 22:57:32 +01:00
|
|
|
buildInputs = [
|
2019-11-10 17:44:34 +01:00
|
|
|
libGLU libGL zlib python expat libxml2 libsigcxx libuuid freetype libpng
|
2019-12-02 23:14:12 +01:00
|
|
|
boost cairomm libjpeg libtiff
|
2019-12-19 00:49:14 +01:00
|
|
|
ftgl glew gtkmm2 glibmm gtkglext libXmu
|
2012-01-26 14:12:36 +01:00
|
|
|
];
|
|
|
|
|
2014-08-31 10:52:59 +02:00
|
|
|
#doCheck = false;
|
|
|
|
|
2019-10-30 03:23:29 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
|
2018-12-27 18:25:57 +01:00
|
|
|
|
2018-09-01 13:41:30 +02:00
|
|
|
meta = with stdenv.lib; {
|
2012-01-26 14:12:36 +01:00
|
|
|
description = "A 3D editor with support for procedural editing";
|
2016-11-09 22:27:41 +01:00
|
|
|
homepage = http://www.k-3d.org/;
|
2018-09-01 13:41:30 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
license = licenses.gpl2;
|
2012-01-26 14:12:36 +01:00
|
|
|
};
|
|
|
|
}
|