nixpkgs-suyu/pkgs/applications/graphics/k3d/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

{stdenv, fetchurl
, cmake, mesa, zlib, python, expat, libxml2, libsigcxx, libuuid, freetype
, libpng, boost, doxygen, cairomm, pkgconfig, imagemagick, libjpeg, libtiff
2014-08-30 22:25:48 +02:00
, gettext, intltool, perl, gtkmm, glibmm, gtkglext, pangox_compat, libXmu
}:
stdenv.mkDerivation rec {
version = "0.8.0.2";
name = "k3d-${version}";
src = fetchurl {
url = "mirror://sourceforge/k3d/k3d-source-0.8.0.2.tar.bz2";
sha256 = "01fd2qb0zddif3wz1a2wdmwyzn81cf73678qp2gjs8iikmdz6w7x";
};
2014-08-23 11:39:05 +02:00
patches = [
./k3d_gtkmm224.patch
2014-08-31 10:52:59 +02:00
./libpng-1.4.patch
2014-08-23 11:39:05 +02:00
];
preConfigure = ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/build/lib"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fpermissive -I$(echo ${gtkglext}/include/gtkglext-*) -I$(echo ${gtkglext}/lib/gtkglext-*/include)"
'';
buildInputs = [
cmake mesa zlib python expat libxml2 libsigcxx libuuid freetype libpng
2014-09-19 19:56:08 +02:00
boost boost.lib doxygen cairomm pkgconfig imagemagick libjpeg libtiff
gettext intltool perl
2014-08-30 22:25:48 +02:00
gtkmm glibmm gtkglext pangox_compat libXmu
];
2014-08-31 10:52:59 +02:00
#doCheck = false;
enableParallelBuilding = true;
meta = {
description = "A 3D editor with support for procedural editing";
homepage = "http://k-3d.org/";
platforms = with stdenv.lib.platforms;
linux;
maintainers = with stdenv.lib.maintainers;
[raskin];
};
}