3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/k3d/default.nix

43 lines
1.4 KiB
Nix
Raw Normal View History

2016-09-03 00:59:23 +01:00
{ stdenv, fetchFromGitHub, unzip, ftgl, glew, asciidoc
, cmake, mesa, zlib, python, expat, libxml2, libsigcxx, libuuid, freetype
, libpng, boost, doxygen, cairomm, pkgconfig, imagemagick, libjpeg, libtiff
2014-09-23 10:33:30 +01:00
, gettext, intltool, perl, gtkmm, glibmm, gtkglext, pangox_compat, libXmu }:
stdenv.mkDerivation rec {
2016-09-03 00:59:23 +01:00
version = "0.8.0.5";
name = "k3d-${version}";
2016-09-03 00:59:23 +01:00
src = fetchFromGitHub {
owner = "K-3D";
repo = "k3d";
rev = name;
sha256 = "0q05d51vhnmrq887n15frpwkhx8w7n20h2sc1lpr338jzpryihb3";
};
2014-09-23 10:33:30 +01:00
cmakeFlags = "-DK3D_BUILD_DOCS=false -DK3D_BUILD_GUIDE=false";
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)"
'';
buildInputs = [
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
2014-08-30 21:25:48 +01:00
gtkmm glibmm gtkglext pangox_compat libXmu
];
2014-08-31 09:52:59 +01: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];
};
}