2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, ftgl, glew, asciidoc
|
2021-08-05 21:33:18 +00:00
|
|
|
, cmake, ninja, libGLU, libGL, zlib, python2, expat, libxml2, libsigcxx, libuuid, freetype
|
2021-02-05 17:12:51 +00:00
|
|
|
, libpng, boost, doxygen, cairomm, pkg-config, libjpeg, libtiff
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext, intltool, perl, gtkmm2, glibmm, gtkglext, libXmu }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.8.0.6";
|
|
|
|
pname = "k3d";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "K-3D";
|
|
|
|
repo = "k3d";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "0vdjjg6h8mxm2n8mvkkg2mvd27jn2xx90hnmx23cbd35mpz9p4aa";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch { /* glibmm 2.50 fix */
|
|
|
|
url = "https://github.com/K-3D/k3d/commit/c65889d0652490d88a573e47de7a9324bf27bff2.patch";
|
|
|
|
sha256 = "162icv1hicr2dirkb9ijacvg9bhz5j30yfwg7b45ijavk8rns62j";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DK3D_BUILD_DOCS=false"
|
|
|
|
"-DK3D_BUILD_GUIDE=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/build/lib"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ninja gettext intltool doxygen pkg-config perl asciidoc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-08-05 21:33:18 +00:00
|
|
|
libGLU libGL zlib python2 expat libxml2 libsigcxx libuuid freetype libpng
|
2020-04-24 23:36:52 +00:00
|
|
|
boost cairomm libjpeg libtiff
|
|
|
|
ftgl glew gtkmm2 glibmm gtkglext libXmu
|
|
|
|
];
|
|
|
|
|
|
|
|
#doCheck = false;
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A 3D editor with support for procedural editing";
|
|
|
|
homepage = "http://www.k-3d.org/";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|