2012-03-14 22:57:32 +01:00
|
|
|
{stdenv, fetchurl
|
|
|
|
, cmake, mesa, zlib, python, expat, libxml2, libsigcxx, libuuid, freetype
|
|
|
|
, libpng, boost, doxygen, cairomm, pkgconfig, imagemagick, libjpeg, libtiff
|
|
|
|
, gettext, intltool, perl, gtkmm, glibmm, gtkglext
|
|
|
|
}:
|
2012-01-26 14:12:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.8.0.2";
|
|
|
|
name = "k3d-${version}";
|
|
|
|
src = fetchurl {
|
2012-03-14 22:57:32 +01:00
|
|
|
url = "mirror://sourceforge/k3d/k3d-source-0.8.0.2.tar.bz2";
|
2012-01-26 14:12:36 +01:00
|
|
|
sha256 = "01fd2qb0zddif3wz1a2wdmwyzn81cf73678qp2gjs8iikmdz6w7x";
|
|
|
|
};
|
|
|
|
|
2012-03-15 00:34:30 +01:00
|
|
|
patches = map fetchurl ((import ./debian-patches.nix) ++
|
|
|
|
[ {
|
|
|
|
url = http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/k3d/files/k3d-0.7.11.0-libpng14.patch;
|
|
|
|
sha256 = "1vl7dbvxg9b54ay0n8dd2v2k3j001h8h1bpr1cbm3vrzv31lnwzx";
|
|
|
|
} ]);
|
2012-01-26 14:12:36 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/build/lib"
|
2014-01-05 13:09:22 +01:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fpermissive -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
|
|
|
|
boost doxygen cairomm pkgconfig imagemagick libjpeg libtiff gettext
|
|
|
|
intltool perl
|
2012-03-15 00:34:30 +01:00
|
|
|
gtkmm glibmm gtkglext
|
2012-01-26 14:12:36 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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];
|
|
|
|
};
|
|
|
|
}
|