diff options
Diffstat (limited to 'pkgs/development/tools/documentation/doxygen/default.nix')
-rw-r--r-- | pkgs/development/tools/documentation/doxygen/default.nix | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/pkgs/development/tools/documentation/doxygen/default.nix b/pkgs/development/tools/documentation/doxygen/default.nix index a9600f1d6dc60..df51c51bde174 100644 --- a/pkgs/development/tools/documentation/doxygen/default.nix +++ b/pkgs/development/tools/documentation/doxygen/default.nix @@ -1,7 +1,10 @@ -{stdenv, fetchurl, graphviz, perl, flex, bison, gnumake, libX11, libXext, qt}: +{ stdenv, fetchurl, perl, flex, bison, qt }: -stdenv.mkDerivation rec { +let name = "doxygen-1.7.4"; +in +stdenv.mkDerivation { + inherit name; src = fetchurl { url = "ftp://ftp.stack.nl/pub/users/dimitri/${name}.src.tar.gz"; @@ -10,23 +13,25 @@ stdenv.mkDerivation rec { patches = [ ./tmake.patch ]; - buildInputs = [ graphviz perl flex bison libX11 libXext ] - ++ (if (qt != null) then [ qt ] else []); + buildInputs = + [ perl flex bison ] + ++ stdenv.lib.optional (qt != null) qt; prefixKey = "--prefix "; - configureFlags = "--release" - + (if qt == null then "" else " --with-doxywizard") - ; - makeFlags = "MAN1DIR=share/man/man1"; - preConfigure = - (if (qt == null) - then "" - else '' + + configureFlags = + [ "--dot dot" ] + ++ stdenv.lib.optional (qt != null) "--with-doxywizard"; + + preConfigure = stdenv.lib.optionalString (qt != null) + '' echo "using QTDIR=${qt}..." export QTDIR=${qt} - ''); - # export CPLUS_INCLUDE_PATH="${qt}/include:$CPLUS_INCLUDE_PATH" - # export LIBRARY_PATH="${qt}/lib:$LIBRARY_PATH" + ''; + + makeFlags = "MAN1DIR=share/man/man1"; + + enableParallelBuilding = true; meta = { license = "GPLv2+"; @@ -42,6 +47,6 @@ stdenv.mkDerivation rec { ''; maintainers = [stdenv.lib.maintainers.simons]; - platforms = stdenv.lib.platforms.unix; + platforms = if (qt != null) then stdenv.lib.platforms.linux else stdenv.lib.platforms.unix; }; } |