gource: fix build

gource currently fails in the configure phase:

  configure: error: Could not link against -lGLU !

This is a very misleading error, it seems to happen because configure
doesn't find boost libraries and ends up with uninitialized variable(s).
That in turn cause it to fail later with this unrelated error.

Fix by using boost libraries, not only the headers. gource also grew a
dependency on GLM, so add that to buildInputs.
This commit is contained in:
Bjørn Forsman 2014-01-18 18:46:18 +01:00
parent 1b4d50dbac
commit 2b74a47006

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, SDL, ftgl, pkgconfig, libpng, libjpeg, pcre
, SDL_image, glew, mesa, boostHeaders
, SDL_image, glew, mesa, boost, glm
}:
stdenv.mkDerivation rec {
@ -11,14 +11,15 @@ stdenv.mkDerivation rec {
};
buildInputs = [
glew SDL ftgl pkgconfig libpng libjpeg pcre SDL_image mesa boostHeaders
glew SDL ftgl pkgconfig libpng libjpeg pcre SDL_image mesa boost glm
];
configureFlags = "--with-boost-libdir=${boost}/lib";
meta = {
homepage = "http://code.google.com/p/gource/";
description = "software version control visualization tool";
license = stdenv.lib.licenses.gpl3Plus;
longDescription = ''
Software projects are displayed by Gource as an animated tree with
the root directory of the project at its centre. Directories
@ -29,7 +30,6 @@ stdenv.mkDerivation rec {
Mercurial and Bazaar and SVN. Gource can also parse logs produced
by several third party tools for CVS repositories.
'';
broken = true;
platforms = stdenv.lib.platforms.linux;
};
}