From a34580133a7769b647637976dff77406c1179500 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 9 Aug 2011 23:35:21 +0000 Subject: [PATCH] doxygen: qt depends on udev(!), so we cannot build the doxygen GUI on other Unix variants svn path=/nixpkgs/trunk/; revision=28448 --- .../tools/documentation/doxygen/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/documentation/doxygen/default.nix b/pkgs/development/tools/documentation/doxygen/default.nix index 40e69147204d..df51c51bde17 100644 --- a/pkgs/development/tools/documentation/doxygen/default.nix +++ b/pkgs/development/tools/documentation/doxygen/default.nix @@ -1,7 +1,10 @@ { 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"; @@ -15,7 +18,7 @@ stdenv.mkDerivation rec { ++ stdenv.lib.optional (qt != null) qt; prefixKey = "--prefix "; - + configureFlags = [ "--dot dot" ] ++ stdenv.lib.optional (qt != null) "--with-doxywizard"; @@ -29,7 +32,7 @@ stdenv.mkDerivation rec { makeFlags = "MAN1DIR=share/man/man1"; enableParallelBuilding = true; - + meta = { license = "GPLv2+"; homepage = "http://doxygen.org/"; @@ -44,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; }; }