mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
cd018e50d4
svn path=/nixpkgs/trunk/; revision=15282
378 lines
9.1 KiB
Nix
378 lines
9.1 KiB
Nix
{pkgs, ghc}:
|
|
|
|
let ghcReal = 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;
|
|
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;
|
|
};
|
|
|
|
benchpress = import ../development/libraries/haskell/benchpress {
|
|
inherit cabal;
|
|
};
|
|
|
|
binary = import ../development/libraries/haskell/binary {
|
|
inherit cabal;
|
|
};
|
|
|
|
cgi = import ../development/libraries/haskell/cgi {
|
|
inherit cabal mtl network parsec xhtml;
|
|
};
|
|
|
|
Crypto = import ../development/libraries/haskell/Crypto {
|
|
inherit cabal;
|
|
};
|
|
|
|
editline = import ../development/libraries/haskell/editline {
|
|
inherit (pkgs) libedit;
|
|
inherit cabal;
|
|
};
|
|
|
|
extensibleExceptions = import ../development/libraries/haskell/extensible-exceptions {
|
|
inherit cabal;
|
|
};
|
|
|
|
fgl = import ../development/libraries/haskell/fgl {
|
|
inherit cabal mtl;
|
|
};
|
|
|
|
ghcPaths = import ../development/libraries/haskell/ghc-paths {
|
|
inherit cabal;
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
haskeline = import ../development/libraries/haskell/haskeline {
|
|
inherit cabal extensibleExceptions mtl utf8String;
|
|
};
|
|
|
|
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 OpenAL OpenGL QuickCheck cgi fgl
|
|
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;
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
hscolour = import ../development/libraries/haskell/hscolour {
|
|
inherit cabal;
|
|
};
|
|
|
|
html = import ../development/libraries/haskell/html {
|
|
inherit cabal;
|
|
};
|
|
|
|
HUnit = import ../development/libraries/haskell/HUnit {
|
|
inherit cabal;
|
|
};
|
|
|
|
maybench = import ../development/libraries/haskell/maybench {
|
|
inherit cabal benchpress;
|
|
};
|
|
|
|
monadlab = import ../development/libraries/haskell/monadlab {
|
|
inherit cabal;
|
|
};
|
|
|
|
mtl = import ../development/libraries/haskell/mtl {
|
|
inherit cabal;
|
|
};
|
|
|
|
multirec = import ../development/libraries/haskell/multirec {
|
|
inherit cabal;
|
|
};
|
|
|
|
network = import ../development/libraries/haskell/network {
|
|
inherit cabal parsec;
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
parallel = import ../development/libraries/haskell/parallel {
|
|
inherit cabal;
|
|
};
|
|
|
|
parsec = import ../development/libraries/haskell/parsec {
|
|
inherit cabal;
|
|
};
|
|
|
|
pcreLight = import ../development/libraries/haskell/pcre-light {
|
|
inherit cabal;
|
|
inherit (pkgs) pcre;
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
stm = import ../development/libraries/haskell/stm {
|
|
inherit cabal;
|
|
};
|
|
|
|
strictConcurrency = import ../development/libraries/haskell/strictConcurrency {
|
|
inherit cabal parallel;
|
|
};
|
|
|
|
time = import ../development/libraries/haskell/time {
|
|
inherit cabal;
|
|
};
|
|
|
|
uniplate = import ../development/libraries/haskell/uniplate {
|
|
inherit cabal mtl;
|
|
};
|
|
|
|
utf8String = import ../development/libraries/haskell/utf8-string {
|
|
inherit cabal;
|
|
};
|
|
|
|
uulib = import ../development/libraries/haskell/uulib {
|
|
inherit cabal;
|
|
};
|
|
|
|
vacuum = import ../development/libraries/haskell/vacuum {
|
|
inherit cabal ghcPaths haskellSrcMeta;
|
|
};
|
|
|
|
vacuumCairo = import ../development/libraries/haskell/vacuumCairo {
|
|
inherit cabal vacuum gtk2hs parallel strictConcurrency;
|
|
};
|
|
|
|
vty = import ../development/libraries/haskell/vty {
|
|
inherit cabal;
|
|
};
|
|
|
|
wxHaskell = import ../development/libraries/haskell/wxHaskell {
|
|
inherit ghc;
|
|
inherit (pkgs) stdenv fetchurl unzip wxGTK;
|
|
};
|
|
|
|
X11 = import ../development/libraries/haskell/X11 {
|
|
inherit cabal;
|
|
inherit (pkgs.xlibs) libX11 libXinerama libXext;
|
|
xineramaSupport = true;
|
|
};
|
|
|
|
xhtml = import ../development/libraries/haskell/xhtml {
|
|
inherit cabal;
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
|
|
# 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 = happy1182;
|
|
|
|
happy117 = import ../development/tools/parsing/happy/happy-1.17.nix {
|
|
inherit cabal;
|
|
inherit (pkgs) perl;
|
|
};
|
|
|
|
happy1182 = import ../development/tools/parsing/happy/happy-1.18.2.nix {
|
|
inherit cabal mtl;
|
|
inherit (pkgs) perl;
|
|
};
|
|
|
|
hlint = import ../development/tools/haskell/hlint {
|
|
inherit cabal haskellSrcExts mtl uniplate hscolour;
|
|
};
|
|
|
|
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;
|
|
inherit (pkgs) zlib curl;
|
|
};
|
|
|
|
leksah = import ../applications/editors/leksah {
|
|
inherit cabal gtk2hs binary parsec regexPosix 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;
|
|
};
|
|
|
|
|
|
# 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;
|
|
};
|
|
|
|
}
|