diff options
author | Shea Levy <shea@shealevy.com> | 2011-08-31 18:12:33 +0000 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2011-08-31 18:12:33 +0000 |
commit | 191a4c404ab57be4466e9b2d6ef25c6c77152602 (patch) | |
tree | 23000acd1260299138cdb9cf355ab0054ecfc783 /pkgs/development/tools/documentation | |
parent | f7f9b39450877382151dc0bdd10281404780f19f (diff) | |
parent | 04b1ac31da9885e3b1893a98e5280b8f9a039652 (diff) |
Merge from trunk backups/darwin-updates@34176
svn path=/nixpkgs/branches/darwin-updates/; revision=28944
Diffstat (limited to 'pkgs/development/tools/documentation')
7 files changed, 51 insertions, 81 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; }; } diff --git a/pkgs/development/tools/documentation/haddock/2.4.2.nix b/pkgs/development/tools/documentation/haddock/2.4.2.nix index ff7c982267e71..226a4fd676e38 100644 --- a/pkgs/development/tools/documentation/haddock/2.4.2.nix +++ b/pkgs/development/tools/documentation/haddock/2.4.2.nix @@ -1,13 +1,20 @@ -{cabal, ghcPaths, libedit}: +{ cabal, ghcPaths }: -cabal.mkDerivation (self : { +cabal.mkDerivation (self: { pname = "haddock"; - version = "2.4.2"; # Haskell Platform 2009.0.0 - name = self.fname; + version = "2.4.2"; sha256 = "dbf0a7d0103a3ce6a91b2a3b96148c1b9c13ea7f8bd74260c21fe98df7839547"; - # TODO: adding libedit here is a hack - propagatedBuildInputs = [ghcPaths libedit]; + isLibrary = true; + isExecutable = true; + buildDepends = [ ghcPaths ]; meta = { - description = "a tool for automatically generating documentation from annotated Haskell source code"; + homepage = "http://www.haskell.org/haddock/"; + description = "A documentation-generation tool for Haskell libraries"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) diff --git a/pkgs/development/tools/documentation/haddock/2.7.2.nix b/pkgs/development/tools/documentation/haddock/2.7.2.nix index b59ea32827967..c94b3e43b7e18 100644 --- a/pkgs/development/tools/documentation/haddock/2.7.2.nix +++ b/pkgs/development/tools/documentation/haddock/2.7.2.nix @@ -13,6 +13,13 @@ cabal.mkDerivation (self : { ''; meta = { - description = "a tool for automatically generating documentation from annotated Haskell source code"; + homepage = "http://www.haskell.org/haddock/"; + description = "A documentation-generation tool for Haskell libraries"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) diff --git a/pkgs/development/tools/documentation/haddock/2.9.2.nix b/pkgs/development/tools/documentation/haddock/2.9.2.nix index 42dbd81d9ff67..c6543936ab319 100644 --- a/pkgs/development/tools/documentation/haddock/2.9.2.nix +++ b/pkgs/development/tools/documentation/haddock/2.9.2.nix @@ -13,6 +13,13 @@ cabal.mkDerivation (self : { ''; meta = { - description = "a tool for automatically generating documentation from annotated Haskell source code"; + homepage = "http://www.haskell.org/haddock/"; + description = "A documentation-generation tool for Haskell libraries"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; }; }) diff --git a/pkgs/development/tools/documentation/haddock/boot.nix b/pkgs/development/tools/documentation/haddock/boot.nix deleted file mode 100644 index edaaac473301f..0000000000000 --- a/pkgs/development/tools/documentation/haddock/boot.nix +++ /dev/null @@ -1,34 +0,0 @@ -{cabal, gmp}: - -cabal.mkDerivation (self : { - pname = "haddock"; - version = "0.9"; - name = self.fname; - sha256 = "beefd4a6da577978e7a79cabba60970accc5cd48fbb04c424a6b36ace3a9f8d0"; - extraBuildInputs = [gmp]; - meta = { - description = "a tool for automatically generating documentation from annotated Haskell source code"; - }; - - # we are using this for booting, and ghc-6.4.2 doesn't have full - # Cabal support, therefore we have to override some things: - configurePhase = '' - sed -i -e 's|cabal-version:.*$|cabal-version: >= 1.0|' \ - -e '/^flag/,+3d' \ - -e '/^ *if/,+2d' \ - -e '/^ *else/d' \ - -e 's|^ ||' \ - -e 's|^ ||' \ - -e '/^executable/,$ { /^ *$/d }' \ - -e '/^build-depends/d' \ - -e '/data-files/ibuild-depends: base, haskell98' \ - haddock.cabal - cp dist/build/haddock/haddock-tmp/*.hs src - ghc --make -o Setup Setup.lhs - ./Setup configure --verbose --prefix="$out" - ''; - - installPhase = '' - ./Setup copy - ''; -}) diff --git a/pkgs/development/tools/documentation/haddock/haddock-0.9.nix b/pkgs/development/tools/documentation/haddock/haddock-0.9.nix deleted file mode 100644 index 8dddc59d96e14..0000000000000 --- a/pkgs/development/tools/documentation/haddock/haddock-0.9.nix +++ /dev/null @@ -1,11 +0,0 @@ -{cabal}: - -cabal.mkDerivation (self : { - pname = "haddock"; - version = "0.9"; - name = self.fname; - sha256 = "beefd4a6da577978e7a79cabba60970accc5cd48fbb04c424a6b36ace3a9f8d0"; - meta = { - description = "a tool for automatically generating documentation from annotated Haskell source code"; - }; -}) diff --git a/pkgs/development/tools/documentation/haddock/haddock-2.1.0.nix b/pkgs/development/tools/documentation/haddock/haddock-2.1.0.nix deleted file mode 100644 index f170cbf7c2622..0000000000000 --- a/pkgs/development/tools/documentation/haddock/haddock-2.1.0.nix +++ /dev/null @@ -1,11 +0,0 @@ -{cabal}: - -cabal.mkDerivation (self : { - pname = "haddock"; - version = "2.1.0"; - name = self.fname; - sha256 = "1b67869e493e56366207a128949998851f975d821e0952c2c717840d2eadaca7"; - meta = { - description = "a tool for automatically generating documentation from annotated Haskell source code"; - }; -}) |