3
0
Fork 0
forked from mirrors/nixpkgs

Added cabalized darcs-2 and associated Haskell libs.

svn path=/nixpkgs/trunk/; revision=15141
This commit is contained in:
Andres Löh 2009-04-19 10:07:41 +00:00
parent 306b6e87a5
commit 1643888f80
9 changed files with 106 additions and 6 deletions

View file

@ -1,10 +1,12 @@
{cabal /* , ghc, zlib, ncurses, curl, perl */}:
{cabal, html, mtl, parsec, regexCompat, zlib, curl} : /* , ghc, zlib, ncurses, curl, perl */
cabal.mkDerivation (self : {
pname = "darcs";
name = self.fname;
version = "2.2.1";
sha256 = "0iy4d4qls6yhwmgv87pz4kmr5jh4bwigz1wfwzns71b68csynnsp";
extraBuildInputs = [html mtl parsec regexCompat zlib curl];
#buildInputs = [ghc zlib ncurses curl perl];
#NIX_LDFLAGS = "-lz";

View file

@ -10,7 +10,7 @@ addLibToPackageConf () {
local fn
shopt -s nullglob
for fn in $1/lib/ghc-pkgs/ghc-@ghcVersion@/*.conf; do
@ghc@/bin/ghc-pkg register $fn
@ghc@/bin/ghc-pkg register --force $fn
done
}

View file

@ -0,0 +1,11 @@
{cabal}:
cabal.mkDerivation (self : {
pname = "html";
version = "1.0.1.2";
sha256 = "0c35495ea33d65e69c69bc7441ec8e1af69fbb43433c2aa3406c0a13a3ab3061";
meta = {
description = "HTML combinator library";
};
})

View file

@ -0,0 +1,11 @@
{cabal}:
cabal.mkDerivation (self : {
pname = "mtl";
version = "1.1.0.2";
sha256 = "a225aaf2b1e337f40c31e5c42f95eec9a4608322b0e4c135d2b31b8421a58d36";
meta = {
description = "Monad transformer library";
};
})

View file

@ -0,0 +1,11 @@
{cabal}:
cabal.mkDerivation (self : {
pname = "parsec";
version = "2.1.0.1";
sha256 = "2d85e5b5c8b2b1f341037ce67e1db7fa47b31c083136796cfef9e5b945c656df";
meta = {
description = "Monadic parser combinators";
};
})

View file

@ -0,0 +1,12 @@
{cabal, mtl}:
cabal.mkDerivation (self : {
pname = "regex-base";
version = "0.93.1";
sha256 = "24a0e76ab308517a53d2525e18744d9058835626ed4005599ecd8dd4e07f3bef";
propagatedBuildInputs = [mtl];
meta = {
description = "Replaces/Ehances Text.Regex";
};
})

View file

@ -0,0 +1,12 @@
{cabal, regexBase, regexPosix}:
cabal.mkDerivation (self : {
pname = "regex-compat";
version = "0.92";
sha256 = "430d251bd704071fca1e38c9b250543f00d4e370382ed552ac3d7407d4f27936";
propagatedBuildInputs = [regexBase regexPosix];
meta = {
description = "Replaces/Ehances Text.Regex";
};
})

View file

@ -0,0 +1,12 @@
{cabal, regexBase}:
cabal.mkDerivation (self : {
pname = "regex-posix";
version = "0.94.1";
sha256 = "63e76de0610d35f1b576ae65a25a38e04e758ed64b9b3512de95bdffd649485c";
extraBuildInputs = [regexBase];
meta = {
description = "Replaces/Ehances Text.Regex";
};
})

View file

@ -79,15 +79,39 @@ rec {
inherit (pkgs) sqlite;
};
html = import ../development/libraries/haskell/html {
inherit cabal;
};
monadlab = import ../development/libraries/haskell/monadlab {
inherit cabal;
};
mtl = import ../development/libraries/haskell/mtl {
inherit cabal;
};
parsec = import ../development/libraries/haskell/parsec {
inherit cabal;
};
pcreLight = import ../development/libraries/haskell/pcre-light {
inherit cabal;
inherit (pkgs) pcre;
};
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;
};
uuagc = import ../development/tools/haskell/uuagc {
inherit cabal uulib;
};
@ -101,16 +125,20 @@ rec {
inherit (pkgs) stdenv fetchurl unzip wxGTK;
};
X11 = import ../development/libraries/haskell/X11 {
unix = import ../development/libraries/haskell/unix {
inherit cabal;
inherit (pkgs.xlibs) libX11 libXinerama libXext;
xineramaSupport = true;
};
vty = import ../development/libraries/haskell/vty {
inherit cabal;
};
X11 = import ../development/libraries/haskell/X11 {
inherit cabal;
inherit (pkgs.xlibs) libX11 libXinerama libXext;
xineramaSupport = true;
};
zlib = import ../development/libraries/haskell/zlib {
inherit cabal zlib;
};
@ -150,7 +178,8 @@ rec {
# Applications.
darcs = import ../applications/version-management/darcs/darcs-2.nix {
inherit cabal;
inherit cabal html mtl parsec regexCompat;
inherit (pkgs) zlib curl;
};
xmobar = import ../applications/misc/xmobar {