nixpkgs/pkgs/top-level/haskell-packages.nix

763 lines
20 KiB
Nix
Raw Normal View History

{pkgs, ghc}:
let ghcReal = pkgs.lowPrio ghc; in
rec {
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.
ghc = import ../development/compilers/ghc/wrapper.nix {
inherit (pkgs) stdenv makeWrapper;
ghc = ghcReal;
};
cabal = import ../development/libraries/haskell/cabal/cabal.nix {
inherit (pkgs) stdenv fetchurl lib;
inherit ghc;
};
# Haskell libraries.
# Agda depends on a specific version of QuickCheck
Agda = import ../development/libraries/haskell/Agda {
inherit cabal binary haskeline haskellSrc mtl utf8String xhtml zlib
happy alex;
QuickCheck = QuickCheck2101;
};
ansiTerminal = import ../development/libraries/haskell/ansi-terminal {
inherit cabal;
};
ansiWLPprint = import ../development/libraries/haskell/ansi-wl-pprint {
inherit cabal ansiTerminal;
};
benchpress = import ../development/libraries/haskell/benchpress {
inherit cabal;
};
binary = import ../development/libraries/haskell/binary {
inherit cabal;
};
bytestring = import ../development/libraries/haskell/bytestring {
inherit cabal;
};
networkBytestring = import ../development/libraries/haskell/network-bytestring {
inherit cabal bytestring network;
};
cgi = import ../development/libraries/haskell/cgi {
inherit cabal mtl network parsec xhtml;
};
colorizeHaskell = import ../development/libraries/haskell/colorize-haskell {
inherit cabal ansiTerminal haskellLexer;
};
convertible = import ../development/libraries/haskell/convertible {
inherit cabal mtl;
time = time113;
};
Crypto = import ../development/libraries/haskell/Crypto {
inherit cabal HUnit QuickCheck;
};
CS173Tourney = import ../development/libraries/haskell/CS173Tourney {
inherit cabal ;
inherit (pkgs) fetchgit ;
inherit time hslogger Crypto base64string CouchDB WebServer WebServerExtras;
json = json_036;
};
dataenc = import ../development/libraries/haskell/dataenc {
inherit cabal;
};
dataReify = import ../development/libraries/haskell/data-reify {
inherit cabal;
};
datetime = import ../development/libraries/haskell/datetime {
inherit cabal QuickCheck time;
};
Diff = import ../development/libraries/haskell/Diff {
inherit cabal;
};
digest = import ../development/libraries/haskell/digest {
inherit cabal;
inherit (pkgs) zlib;
};
dotgen = import ../development/libraries/haskell/dotgen {
inherit cabal;
};
editline = import ../development/libraries/haskell/editline {
inherit (pkgs) libedit;
inherit cabal;
};
filepath = import ../development/libraries/haskell/filepath {
inherit cabal;
};
emgm = import ../development/libraries/haskell/emgm {
inherit cabal;
};
extensibleExceptions = import ../development/libraries/haskell/extensible-exceptions {
inherit cabal;
};
filestore = import ../development/libraries/haskell/filestore {
inherit cabal datetime parsec regexPosix split time utf8String xml Diff;
};
fgl = import ../development/libraries/haskell/fgl {
inherit cabal mtl;
};
getOptions = import ../development/libraries/haskell/get-options {
inherit cabal mtl; inherit (pkgs.bleedingEdgeRepos) sourceByName;
};
ghcCore = import ../development/libraries/haskell/ghc-core {
inherit cabal pcreLight colorizeHaskell;
};
ghcPaths = import ../development/libraries/haskell/ghc-paths {
inherit cabal;
};
ghcSyb = import ../development/libraries/haskell/ghc-syb {
inherit cabal syb; inherit (pkgs.bleedingEdgeRepos) sourceByName;
};
gitit = import ../development/libraries/haskell/gitit {
inherit cabal HAppSServer HStringTemplate HTTP SHA cgi datetime
filestore highlightingKate mtl network pandoc parsec recaptcha
utf8String xhtml zlib;
};
GLUT = import ../development/libraries/haskell/GLUT {
inherit cabal OpenGL;
glut = pkgs.freeglut;
inherit (pkgs) mesa;
inherit (pkgs.xlibs) libSM libICE libXmu libXi;
};
gtk2hs = import ../development/libraries/haskell/gtk2hs {
inherit ghc mtl;
inherit (pkgs) stdenv fetchurl pkgconfig gnome cairo;
};
HAppSData = import ../development/libraries/haskell/HAppS/HAppS-Data.nix {
inherit cabal mtl sybWithClass HaXml HAppSUtil bytestring binary;
};
HAppSIxSet = import ../development/libraries/haskell/HAppS/HAppS-IxSet.nix {
inherit cabal mtl hslogger HAppSUtil HAppSState HAppSData sybWithClass;
};
HAppSUtil = import ../development/libraries/haskell/HAppS/HAppS-Util.nix {
inherit cabal mtl hslogger bytestring;
};
HAppSServer = import ../development/libraries/haskell/HAppS/HAppS-Server.nix {
inherit cabal HaXml parsec mtl network hslogger HAppSData HAppSUtil HAppSState HAppSIxSet HTTP xhtml html bytestring;
};
HAppSState = import ../development/libraries/haskell/HAppS/HAppS-State.nix {
inherit cabal HaXml mtl network stm hslogger HAppSUtil HAppSData bytestring binary hspread;
};
hashedStorage = import ../development/libraries/haskell/hashed-storage {
inherit cabal mtl zlib mmap;
};
haskeline = import ../development/libraries/haskell/haskeline {
inherit cabal extensibleExceptions mtl utf8String;
};
haskelineClass = import ../development/libraries/haskell/haskeline-class {
inherit cabal haskeline mtl;
};
haskellLexer = import ../development/libraries/haskell/haskell-lexer {
inherit cabal;
};
haskellSrc = import ../development/libraries/haskell/haskell-src {
inherit cabal happy;
};
haskellSrcExts = import ../development/libraries/haskell/haskell-src-exts {
inherit cabal cpphs happy;
};
haskellSrcMeta = import ../development/libraries/haskell/haskell-src-meta {
inherit cabal haskellSrcExts;
};
haskellPlatform = import ../development/libraries/haskell/haskell-platform {
inherit cabal GLUT HTTP HUnit OpenGL QuickCheck cgi fgl editline
haskellSrc html parallel regexBase regexCompat regexPosix
stm time xhtml zlib cabalInstall alex happy haddock;
ghc = ghcReal;
inherit (pkgs) fetchurl;
};
HTTP = import ../development/libraries/haskell/HTTP {
inherit cabal mtl network parsec;
};
HTTP_3001 = import ../development/libraries/haskell/HTTP/3001.nix {
inherit cabal mtl network parsec;
};
haxr = import ../development/libraries/haskell/haxr {
inherit cabal HaXml HTTP dataenc time;
};
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.nix {
inherit cabal HUnit QuickCheck mtl time utf8String convertible testpack;
};
HDBCPostgresql = import ../development/libraries/haskell/HDBC/HDBC-postgresql.nix {
inherit cabal HDBC parsec;
inherit (pkgs) postgresql;
};
HDBCSqlite = import ../development/libraries/haskell/HDBC/HDBC-sqlite3.nix {
inherit cabal HDBC;
inherit (pkgs) sqlite;
};
HGL = import ../development/libraries/haskell/HGL {
inherit cabal X11;
};
highlightingKate = import ../development/libraries/haskell/highlighting-kate {
inherit cabal parsec pcreLight xhtml;
};
Hipmunk = import ../development/libraries/haskell/Hipmunk {
inherit cabal;
};
HList = import ../development/libraries/haskell/HList {
inherit cabal ;
};
hscolour = import ../development/libraries/haskell/hscolour {
inherit cabal;
};
HStringTemplate = import ../development/libraries/haskell/HStringTemplate {
inherit cabal parsec time;
};
hspread = import ../development/libraries/haskell/hspread {
inherit cabal binary network;
};
hsloggerTemplate = import ../development/libraries/haskell/hslogger-template {
inherit cabal hslogger mtl;
};
html = import ../development/libraries/haskell/html {
inherit cabal;
};
httpdShed = import ../development/libraries/haskell/httpd-shed {
inherit cabal network;
};
HUnit = import ../development/libraries/haskell/HUnit {
inherit cabal;
};
ivor = import ../development/libraries/haskell/ivor {
inherit cabal mtl parsec;
};
json = import ../development/libraries/haskell/json {
inherit cabal mtl;
};
json_036 = import ../development/libraries/haskell/json/0.3.6.nix {
inherit cabal mtl;
};
maybench = import ../development/libraries/haskell/maybench {
inherit cabal benchpress;
};
mmap = import ../development/libraries/haskell/mmap {
inherit cabal;
};
monadlab = import ../development/libraries/haskell/monadlab {
inherit cabal parsec;
};
MonadRandom = import ../development/libraries/haskell/MonadRandom {
inherit cabal mtl;
};
mpppc = import ../development/libraries/haskell/mpppc {
inherit cabal ansiTerminal split text;
};
mtl = import ../development/libraries/haskell/mtl {
inherit cabal;
};
multirec = import ../development/libraries/haskell/multirec {
inherit cabal;
};
multiset = import ../development/libraries/haskell/multiset {
inherit cabal syb;
};
network = import ../development/libraries/haskell/network {
inherit cabal parsec;
};
nonNegative = import ../development/libraries/haskell/non-negative {
inherit cabal QuickCheck;
};
numericPrelude = import ../development/libraries/haskell/numeric-prelude {
inherit cabal HUnit QuickCheck parsec nonNegative utilityHt;
};
OpenAL = import ../development/libraries/haskell/OpenAL {
inherit cabal OpenGL;
inherit (pkgs) openal;
};
OpenGL = import ../development/libraries/haskell/OpenGL {
inherit cabal;
inherit (pkgs) mesa;
inherit (pkgs.xlibs) libX11;
};
pandoc = import ../development/libraries/haskell/pandoc {
inherit cabal mtl network parsec utf8String xhtml zipArchive;
};
parallel = import ../development/libraries/haskell/parallel {
inherit cabal;
};
parseargs = import ../development/libraries/haskell/parseargs {
inherit cabal;
};
parsec = import ../development/libraries/haskell/parsec {
inherit cabal;
};
parsec3 = import ../development/libraries/haskell/parsec/3.nix {
inherit cabal mtl;
};
parsimony = import ../development/libraries/haskell/parsimony {
inherit cabal utf8String;
};
pcreLight = import ../development/libraries/haskell/pcre-light {
inherit cabal;
inherit (pkgs) pcre;
};
polyparse = import ../development/libraries/haskell/polyparse {
inherit cabal;
};
QuickCheck = QuickCheck1;
QuickCheck1 = QuickCheck1200;
QuickCheck2 = QuickCheck2101;
QuickCheck1200 = import ../development/libraries/haskell/QuickCheck {
inherit cabal;
};
QuickCheck2101 = import ../development/libraries/haskell/QuickCheck/2.1.0.1.nix {
inherit cabal mtl;
};
readline = import ../development/libraries/haskell/readline {
inherit cabal;
inherit (pkgs) readline ncurses;
};
recaptcha = import ../development/libraries/haskell/recaptcha {
inherit cabal HTTP network xhtml;
};
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;
};
regular = import ../development/libraries/haskell/regular {
inherit cabal;
};
scion = import ../development/libraries/haskell/scion {
inherit cabal ghcPaths ghcSyb hslogger json multiset time uniplate;
};
syb = import ../development/libraries/haskell/syb {
inherit cabal;
};
sybWithClass = import ../development/libraries/haskell/syb/syb-with-class.nix {
inherit cabal;
};
SDLImage = import ../development/libraries/haskell/SDL-image {
inherit cabal SDL;
inherit (pkgs) SDL_image;
};
SDLMixer = import ../development/libraries/haskell/SDL-mixer {
inherit cabal SDL;
inherit (pkgs) SDL_mixer;
};
SDLTtf = import ../development/libraries/haskell/SDL-ttf {
inherit cabal SDL;
inherit (pkgs) SDL_ttf;
};
SDL = import ../development/libraries/haskell/SDL {
inherit cabal;
inherit (pkgs) SDL;
};
SHA = import ../development/libraries/haskell/SHA {
inherit cabal binary;
};
Shellac = import ../development/libraries/haskell/Shellac/Shellac.nix {
inherit cabal mtl;
};
ShellacHaskeline = import ../development/libraries/haskell/Shellac/Shellac-haskeline.nix {
inherit cabal Shellac haskeline;
};
ShellacReadline = import ../development/libraries/haskell/Shellac/Shellac-readline.nix {
inherit cabal Shellac readline;
};
split = import ../development/libraries/haskell/split {
inherit cabal;
};
stm = import ../development/libraries/haskell/stm {
inherit cabal;
};
storableComplex = import ../development/libraries/haskell/storable-complex {
inherit cabal;
};
strictConcurrency = import ../development/libraries/haskell/strictConcurrency {
inherit cabal parallel;
};
terminfo = import ../development/libraries/haskell/terminfo {
inherit cabal extensibleExceptions /* only required for <= ghc6102 ?*/;
inherit (pkgs) ncurses;
};
testpack = import ../development/libraries/haskell/testpack {
inherit cabal HUnit QuickCheck mtl;
};
text = import ../development/libraries/haskell/text {
inherit cabal;
};
/* time is Haskell Platform default, time113 is more recent but incompatible */
time = import ../development/libraries/haskell/time {
inherit cabal;
};
time113 = import ../development/libraries/haskell/time/1.1.3.nix {
inherit cabal;
};
transformers = import ../development/libraries/haskell/transformers {
inherit cabal;
};
uniplate = import ../development/libraries/haskell/uniplate {
inherit cabal mtl;
};
uniqueid = import ../development/libraries/haskell/uniqueid {
inherit cabal;
};
utf8String = import ../development/libraries/haskell/utf8-string {
inherit cabal;
};
utilityHt = import ../development/libraries/haskell/utility-ht {
inherit cabal;
};
uulib = import ../development/libraries/haskell/uulib {
inherit cabal;
};
uuParsingLib = import ../development/libraries/haskell/uu-parsinglib {
inherit cabal;
};
vacuum = import ../development/libraries/haskell/vacuum {
inherit cabal ghcPaths;
};
vacuumCairo = import ../development/libraries/haskell/vacuum-cairo {
inherit cabal vacuum gtk2hs parallel strictConcurrency;
};
vty = import ../development/libraries/haskell/vty {
inherit cabal utf8String terminfo;
};
WebServer = import ../development/libraries/haskell/WebServer {
inherit cabal network mtl parsec;
inherit (pkgs) fetchgit;
};
WebServerExtras = import ../development/libraries/haskell/WebServer-Extras {
inherit cabal Crypto WebServer base64string hslogger mtl;
json = json_036;
inherit (pkgs) fetchgit;
};
CouchDB = import ../development/libraries/haskell/CouchDB {
inherit cabal network mtl ;
HTTP = HTTP_3001;
json = json_036;
};
base64string = import ../development/libraries/haskell/base64-string {
inherit cabal;
};
wx = import ../development/libraries/haskell/wxHaskell/wx.nix {
inherit cabal stm wxcore;
};
wxcore = import ../development/libraries/haskell/wxHaskell/wxcore.nix {
inherit cabal time parsec stm;
wxGTK = pkgs.wxGTK28;
inherit (pkgs) mesa;
inherit (pkgs.xlibs) libX11;
};
X11 = import ../development/libraries/haskell/X11 {
inherit cabal;
inherit (pkgs.xlibs) libX11 libXinerama libXext;
xineramaSupport = true;
};
xhtml = import ../development/libraries/haskell/xhtml {
inherit cabal;
};
xml = import ../development/libraries/haskell/xml {
inherit cabal;
};
zipArchive = import ../development/libraries/haskell/zip-archive {
inherit cabal binary mtl utf8String zlib digest;
};
zipper = import ../development/libraries/haskell/zipper {
inherit cabal multirec;
};
zlib = import ../development/libraries/haskell/zlib {
inherit cabal;
inherit (pkgs) zlib;
};
# Compilers.
ehc = import ../development/compilers/ehc {
inherit ghc uulib uuagc;
inherit (pkgs) fetchsvn stdenv coreutils m4 libtool llvm;
};
helium = import ../development/compilers/helium {
inherit ghc;
inherit (pkgs) fetchurl stdenv;
};
idris = import ../development/compilers/idris {
inherit cabal mtl parsec readline ivor happy;
inherit (pkgs) fetchdarcs;
};
# Development tools.
alex = import ../development/tools/parsing/alex {
inherit cabal;
inherit (pkgs) perl;
};
cpphs = import ../development/tools/misc/cpphs {
inherit cabal;
};
frown = import ../development/tools/parsing/frown {
inherit ghc;
inherit (pkgs) fetchurl stdenv;
};
haddock = haddock242;
# 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;
});
haddock242 = import ../development/tools/documentation/haddock/haddock-2.4.2.nix {
inherit cabal ghcPaths;
inherit (pkgs) libedit;
};
happy = happy1184;
happy117 = import ../development/tools/parsing/happy/happy-1.17.nix {
inherit cabal;
inherit (pkgs) perl;
};
happy1184 = import ../development/tools/parsing/happy/happy-1.18.4.nix {
inherit cabal mtl;
inherit (pkgs) perl;
};
hlint = import ../development/tools/haskell/hlint {
inherit cabal haskellSrcExts mtl uniplate hscolour parallel;
};
hslogger = import ../development/tools/haskell/hslogger {
inherit cabal mtl network time;
};
mkcabal = import ../development/tools/haskell/mkcabal {
inherit cabal mtl pcreLight readline;
};
tar = import ../development/tools/haskell/tar {
inherit cabal binary;
};
uuagc = import ../development/tools/haskell/uuagc {
inherit cabal uulib;
};
# Applications.
darcs = import ../applications/version-management/darcs/darcs-2.nix {
inherit cabal html mtl parsec regexCompat haskeline hashedStorage;
inherit (pkgs) curl;
};
leksah = import ../applications/editors/leksah {
inherit cabal gtk2hs binary parsec regexPosix regexCompat utf8String;
inherit (pkgs) libedit makeWrapper;
};
xmobar = import ../applications/misc/xmobar {
inherit cabal X11 mtl parsec stm;
};
xmonad = import ../applications/window-managers/xmonad {
inherit cabal X11 mtl;
inherit (pkgs.xlibs) xmessage;
};
xmonadContrib = import ../applications/window-managers/xmonad/xmonad-contrib.nix {
inherit cabal xmonad X11 utf8String;
};
# Tools.
cabalInstall = import ../tools/package-management/cabal-install {
inherit cabal HTTP network zlib;
};
lhs2tex = import ../tools/typesetting/lhs2tex {
inherit cabal regexCompat utf8String;
inherit (pkgs) tetex polytable;
};
myhasktags = import ../tools/misc/myhasktags {
inherit ghcReal;
inherit (pkgs) stdenv fetchurl;
};
nixRepositoryManager = import ../tools/package-management/nix-repository-manager {
inherit (pkgs) stdenv lib writeText writeScriptBin getConfig bleedingEdgeRepos ;
inherit ghcReal;
};
# Games.
LambdaHack = import ../games/LambdaHack {
inherit cabal binary mtl zlib vty;
};
MazesOfMonad = import ../games/MazesOfMonad {
inherit cabal HUnit mtl regexPosix time;
};
}