2009-04-18 13:47:11 +01:00
|
|
|
{pkgs, ghc}:
|
|
|
|
|
2009-04-18 21:24:36 +01:00
|
|
|
let ghcReal = ghc; in
|
2009-04-18 13:47:11 +01:00
|
|
|
|
|
|
|
rec {
|
|
|
|
|
2009-04-18 21:24:36 +01:00
|
|
|
inherit ghcReal;
|
|
|
|
|
|
|
|
# In the remainder, `ghc' refers to the wrapper. This is because
|
|
|
|
# it's never useful to use the wrapped GHC (`ghcReal'), as the
|
|
|
|
# wrapper provides essential functionality: the ability to find
|
|
|
|
# Haskell packages in the buildInputs automatically.
|
2009-04-18 13:47:11 +01:00
|
|
|
ghc = import ../development/compilers/ghc/wrapper.nix {
|
|
|
|
inherit (pkgs) stdenv;
|
2009-04-18 21:24:36 +01:00
|
|
|
ghc = ghcReal;
|
2009-04-18 13:47:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cabal = import ../development/libraries/haskell/cabal/cabal.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl;
|
|
|
|
inherit ghc;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# Haskell libraries.
|
|
|
|
|
|
|
|
benchpress = import ../development/libraries/haskell/benchpress {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
|
|
|
binary = import ../development/libraries/haskell/binary {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-19 12:44:37 +01:00
|
|
|
cgi = import ../development/libraries/haskell/cgi {
|
|
|
|
inherit cabal mtl network parsec xhtml;
|
|
|
|
};
|
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
Crypto = import ../development/libraries/haskell/Crypto {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
|
|
|
editline = import ../development/libraries/haskell/editline {
|
|
|
|
inherit (pkgs) libedit;
|
|
|
|
inherit cabal;
|
|
|
|
};
|
2009-04-19 12:44:37 +01:00
|
|
|
|
|
|
|
fgl = import ../development/libraries/haskell/fgl {
|
|
|
|
inherit cabal mtl;
|
|
|
|
};
|
2009-04-19 14:38:34 +01:00
|
|
|
|
|
|
|
ghcPaths = import ../development/libraries/haskell/ghc-paths {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
2009-04-18 13:47:11 +01:00
|
|
|
|
|
|
|
gtk2hs = import ../development/libraries/haskell/gtk2hs {
|
2009-04-19 14:58:13 +01:00
|
|
|
inherit ghc mtl;
|
|
|
|
inherit (pkgs) stdenv fetchurl pkgconfig gnome cairo;
|
2009-04-18 13:47:11 +01:00
|
|
|
};
|
2009-04-19 12:44:37 +01:00
|
|
|
|
|
|
|
haskellSrc = import ../development/libraries/haskell/haskell-src {
|
|
|
|
inherit cabal happy;
|
|
|
|
};
|
2009-04-18 13:47:11 +01:00
|
|
|
|
|
|
|
HTTP = import ../development/libraries/haskell/HTTP {
|
2009-04-19 14:21:40 +01:00
|
|
|
inherit cabal mtl network parsec;
|
2009-04-18 13:47:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
haxr = import ../development/libraries/haskell/haxr {
|
|
|
|
inherit cabal HaXml HTTP;
|
|
|
|
};
|
|
|
|
|
|
|
|
haxr_th = import ../development/libraries/haskell/haxr-th {
|
|
|
|
inherit cabal haxr HaXml HTTP;
|
|
|
|
};
|
|
|
|
|
|
|
|
HaXml = import ../development/libraries/haskell/HaXml {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
|
|
|
HDBC = import ../development/libraries/haskell/HDBC/HDBC-1.1.4.nix {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
|
|
|
HDBCPostgresql = import ../development/libraries/haskell/HDBC/HDBC-postgresql-1.1.4.0.nix {
|
|
|
|
inherit cabal HDBC;
|
|
|
|
inherit (pkgs) postgresql;
|
|
|
|
};
|
|
|
|
|
|
|
|
HDBCSqlite = import ../development/libraries/haskell/HDBC/HDBC-sqlite3-1.1.4.0.nix {
|
|
|
|
inherit cabal HDBC;
|
|
|
|
inherit (pkgs) sqlite;
|
|
|
|
};
|
|
|
|
|
2009-04-19 11:07:41 +01:00
|
|
|
html = import ../development/libraries/haskell/html {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-19 12:44:37 +01:00
|
|
|
HUnit = import ../development/libraries/haskell/HUnit {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
|
|
|
maybench = import ../development/libraries/haskell/maybench {
|
|
|
|
inherit cabal benchpress;
|
|
|
|
};
|
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
monadlab = import ../development/libraries/haskell/monadlab {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-19 11:07:41 +01:00
|
|
|
mtl = import ../development/libraries/haskell/mtl {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-19 12:44:37 +01:00
|
|
|
network = import ../development/libraries/haskell/network {
|
|
|
|
inherit cabal parsec;
|
|
|
|
};
|
|
|
|
|
2009-04-19 16:56:45 +01:00
|
|
|
OpenGL = import ../development/libraries/haskell/OpenGL {
|
|
|
|
inherit cabal;
|
|
|
|
inherit (pkgs) mesa;
|
|
|
|
inherit (pkgs.xlibs) libX11;
|
|
|
|
};
|
|
|
|
|
2009-04-19 12:44:37 +01:00
|
|
|
parallel = import ../development/libraries/haskell/parallel {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-19 11:07:41 +01:00
|
|
|
parsec = import ../development/libraries/haskell/parsec {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
pcreLight = import ../development/libraries/haskell/pcre-light {
|
|
|
|
inherit cabal;
|
|
|
|
inherit (pkgs) pcre;
|
|
|
|
};
|
|
|
|
|
2009-04-19 12:44:37 +01:00
|
|
|
QuickCheck = import ../development/libraries/haskell/QuickCheck {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-19 11:07:41 +01:00
|
|
|
regexBase = import ../development/libraries/haskell/regex-base {
|
|
|
|
inherit cabal mtl;
|
|
|
|
};
|
|
|
|
|
|
|
|
regexCompat = import ../development/libraries/haskell/regex-compat {
|
|
|
|
inherit cabal regexBase regexPosix;
|
|
|
|
};
|
|
|
|
|
|
|
|
regexPosix = import ../development/libraries/haskell/regex-posix {
|
|
|
|
inherit cabal regexBase;
|
|
|
|
};
|
|
|
|
|
2009-04-19 12:44:37 +01:00
|
|
|
stm = import ../development/libraries/haskell/stm {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-19 14:21:40 +01:00
|
|
|
time = import ../development/libraries/haskell/time {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-19 14:58:13 +01:00
|
|
|
utf8_string = import ../development/libraries/haskell/utf8-string {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
uuagc = import ../development/tools/haskell/uuagc {
|
|
|
|
inherit cabal uulib;
|
|
|
|
};
|
|
|
|
|
|
|
|
uulib = import ../development/libraries/haskell/uulib {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
|
|
|
wxHaskell = import ../development/libraries/haskell/wxHaskell {
|
|
|
|
inherit ghc;
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip wxGTK;
|
|
|
|
};
|
|
|
|
|
|
|
|
vty = import ../development/libraries/haskell/vty {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-19 11:07:41 +01:00
|
|
|
X11 = import ../development/libraries/haskell/X11 {
|
|
|
|
inherit cabal;
|
|
|
|
inherit (pkgs.xlibs) libX11 libXinerama libXext;
|
|
|
|
xineramaSupport = true;
|
|
|
|
};
|
|
|
|
|
2009-04-19 12:44:37 +01:00
|
|
|
xhtml = import ../development/libraries/haskell/xhtml {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
zlib = import ../development/libraries/haskell/zlib {
|
2009-04-19 14:21:40 +01:00
|
|
|
inherit cabal;
|
|
|
|
inherit (pkgs) zlib;
|
2009-04-18 13:47:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# Compilers.
|
|
|
|
|
|
|
|
ehc = import ../development/compilers/ehc {
|
2009-04-18 16:23:00 +01:00
|
|
|
inherit ghc uulib uuagc;
|
|
|
|
inherit (pkgs) fetchsvn stdenv coreutils m4 libtool llvm;
|
2009-04-18 13:47:11 +01:00
|
|
|
};
|
|
|
|
|
2009-04-19 11:27:22 +01:00
|
|
|
helium = import ../development/compilers/helium {
|
|
|
|
inherit ghc;
|
|
|
|
inherit (pkgs) fetchurl stdenv;
|
|
|
|
};
|
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
|
|
|
|
# Development tools.
|
|
|
|
|
|
|
|
alex = import ../development/tools/parsing/alex {
|
|
|
|
inherit cabal;
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
};
|
|
|
|
|
2009-04-19 11:27:22 +01:00
|
|
|
frown = import ../development/tools/parsing/frown {
|
|
|
|
inherit ghc;
|
|
|
|
inherit (pkgs) fetchurl stdenv;
|
|
|
|
};
|
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
# old version of haddock, still more stable than 2.0
|
|
|
|
haddock09 = import ../development/tools/documentation/haddock/haddock-0.9.nix {
|
|
|
|
inherit cabal;
|
|
|
|
};
|
|
|
|
|
|
|
|
# does not compile with ghc-6.8.3
|
|
|
|
haddock210 = pkgs.stdenv.lib.lowPrio (import ../development/tools/documentation/haddock/haddock-2.1.0.nix {
|
|
|
|
inherit cabal;
|
|
|
|
});
|
|
|
|
|
2009-04-19 14:38:34 +01:00
|
|
|
haddock242 = import ../development/tools/documentation/haddock/haddock-2.4.2.nix {
|
|
|
|
inherit cabal ghcPaths;
|
|
|
|
};
|
|
|
|
|
2009-04-19 12:44:37 +01:00
|
|
|
happy = happy1182;
|
|
|
|
|
|
|
|
happy117 = import ../development/tools/parsing/happy/happy-1.17.nix {
|
2009-04-18 13:47:11 +01:00
|
|
|
inherit cabal;
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
};
|
|
|
|
|
2009-04-19 12:44:37 +01:00
|
|
|
happy1182 = import ../development/tools/parsing/happy/happy-1.18.2.nix {
|
|
|
|
inherit cabal mtl;
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
};
|
2009-04-18 13:47:11 +01:00
|
|
|
|
2009-04-19 14:58:13 +01:00
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
# Applications.
|
|
|
|
|
2009-04-18 16:42:59 +01:00
|
|
|
darcs = import ../applications/version-management/darcs/darcs-2.nix {
|
2009-04-19 11:07:41 +01:00
|
|
|
inherit cabal html mtl parsec regexCompat;
|
|
|
|
inherit (pkgs) zlib curl;
|
2009-04-18 16:42:59 +01:00
|
|
|
};
|
|
|
|
|
2009-04-19 14:58:13 +01:00
|
|
|
leksah = import ../applications/editors/leksah {
|
|
|
|
inherit cabal gtk2hs binary parsec regexPosix utf8_string;
|
|
|
|
inherit (pkgs) libedit;
|
|
|
|
};
|
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
xmobar = import ../applications/misc/xmobar {
|
|
|
|
inherit cabal;
|
|
|
|
inherit (pkgs) X11;
|
|
|
|
};
|
|
|
|
|
|
|
|
xmonad = import ../applications/window-managers/xmonad {
|
|
|
|
inherit cabal X11;
|
|
|
|
inherit (pkgs.xlibs) xmessage;
|
|
|
|
};
|
|
|
|
|
|
|
|
xmonadContrib = import ../applications/window-managers/xmonad/xmonad-contrib.nix {
|
|
|
|
inherit cabal xmonad X11;
|
|
|
|
};
|
|
|
|
|
2009-04-19 11:27:22 +01:00
|
|
|
|
|
|
|
# Tools.
|
|
|
|
|
2009-04-19 14:21:40 +01:00
|
|
|
cabalInstall = import ../tools/package-management/cabal-install {
|
|
|
|
inherit cabal HTTP network zlib;
|
|
|
|
};
|
|
|
|
|
2009-04-19 11:27:22 +01:00
|
|
|
lhs2tex = import ../tools/typesetting/lhs2tex {
|
|
|
|
inherit ghc;
|
|
|
|
inherit (pkgs) fetchurl stdenv tetex polytable;
|
|
|
|
};
|
|
|
|
|
2009-04-18 13:47:11 +01:00
|
|
|
}
|