Towards Haskell Platform support.
svn path=/nixpkgs/trunk/; revision=15148
This commit is contained in:
parent
5cfba3ac68
commit
b148543c3e
11
pkgs/development/libraries/haskell/HUnit/default.nix
Normal file
11
pkgs/development/libraries/haskell/HUnit/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{cabal}:
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "HUnit";
|
||||
version = "1.2.0.3"; # Haskell Platform 2009.0.0
|
||||
sha256 = "954f584f7c096c3ddef677e70b3811195bb4fd18dfdb4727a260ca7d7465de12";
|
||||
meta = {
|
||||
description = "A unit testing framework for Haskell";
|
||||
};
|
||||
})
|
||||
|
11
pkgs/development/libraries/haskell/QuickCheck/default.nix
Normal file
11
pkgs/development/libraries/haskell/QuickCheck/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{cabal}:
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "QuickCheck";
|
||||
version = "1.2.0.0"; # Haskell Platform 2009.0.0
|
||||
sha256 = "21672d817913ac7ab6d3fd7f102dd5d0f115a0826c95b9604c8c0b0171e8d4ed";
|
||||
meta = {
|
||||
description = "Automatic testing of Haskell programs";
|
||||
};
|
||||
})
|
||||
|
@ -49,7 +49,7 @@ attrs :
|
||||
|
||||
for i in ${toString self.patchLibFiles}; do
|
||||
echo "patching $i"
|
||||
test -f $i && sed -i '/[eE]xtra-[lL]ibraries/ { s|\( *\)[eE]xtra-[lL]ibraries.*|&\n\1extra-lib-dirs: ${toString self.extraLibDirs}| }' $i
|
||||
test -f $i && sed -i '/[eE]xtra-[lL]ibraries/ { s|^\( *\)[eE]xtra-[lL]ibraries.*|&\n\1extra-lib-dirs: ${toString self.extraLibDirs}| }' $i
|
||||
done
|
||||
for i in Setup.hs Setup.lhs; do
|
||||
test -f $i && ghc --make $i
|
||||
|
12
pkgs/development/libraries/haskell/haskell-src/default.nix
Normal file
12
pkgs/development/libraries/haskell/haskell-src/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{cabal, happy}:
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "haskell-src";
|
||||
version = "1.0.1.3"; # Haskell Platform 2009.0.0
|
||||
sha256 = "a7872900acd2293775a6bdc6dc8f70438ccd80e62d2d1e2394ddff15b1883e89";
|
||||
extraBuildInputs = [happy];
|
||||
meta = {
|
||||
description = "Manipulating Haskell source code";
|
||||
};
|
||||
})
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "html";
|
||||
version = "1.0.1.2";
|
||||
version = "1.0.1.2"; # Haskell Platform 2009.0.0
|
||||
sha256 = "0c35495ea33d65e69c69bc7441ec8e1af69fbb43433c2aa3406c0a13a3ab3061";
|
||||
meta = {
|
||||
description = "HTML combinator library";
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "mtl";
|
||||
version = "1.1.0.2";
|
||||
version = "1.1.0.2"; # Haskell Platform 2009.0.0
|
||||
sha256 = "a225aaf2b1e337f40c31e5c42f95eec9a4608322b0e4c135d2b31b8421a58d36";
|
||||
meta = {
|
||||
description = "Monad transformer library";
|
||||
|
12
pkgs/development/libraries/haskell/network/default.nix
Normal file
12
pkgs/development/libraries/haskell/network/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{cabal, parsec}:
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "network";
|
||||
version = "2.2.1"; # Haskell Platform 2009.0.0
|
||||
sha256 = "111e4963a0a979570993e79511a778b267ef58df35320d1ddda61a869259b63c";
|
||||
propagatedBuildInputs = [parsec];
|
||||
meta = {
|
||||
description = "Networking-related facilities";
|
||||
};
|
||||
})
|
||||
|
11
pkgs/development/libraries/haskell/parallel/default.nix
Normal file
11
pkgs/development/libraries/haskell/parallel/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{cabal}:
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "parallel";
|
||||
version = "1.1.0.1"; # Haskell Platform 2009.0.0
|
||||
sha256 = "0885086660268f3626effacb29a02b5c81f3e5a8dfa99dabe0981ddbc407999f";
|
||||
meta = {
|
||||
description = "parallel programming library";
|
||||
};
|
||||
})
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "parsec";
|
||||
version = "2.1.0.1";
|
||||
version = "2.1.0.1"; # Haskell Platform 2009.0.0
|
||||
sha256 = "2d85e5b5c8b2b1f341037ce67e1db7fa47b31c083136796cfef9e5b945c656df";
|
||||
meta = {
|
||||
description = "Monadic parser combinators";
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "regex-base";
|
||||
version = "0.93.1";
|
||||
sha256 = "24a0e76ab308517a53d2525e18744d9058835626ed4005599ecd8dd4e07f3bef";
|
||||
version = "0.72.0.2"; # Haskell Platform 2009.0.0
|
||||
sha256 = "38a4901b942fea646a422d52c52ef14eec4d6561c258b3c54cd96a8a354141ee";
|
||||
propagatedBuildInputs = [mtl];
|
||||
meta = {
|
||||
description = "Replaces/Ehances Text.Regex";
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "regex-compat";
|
||||
version = "0.92";
|
||||
sha256 = "430d251bd704071fca1e38c9b250543f00d4e370382ed552ac3d7407d4f27936";
|
||||
version = "0.71.0.1"; # Haskell Platform 2009.0.0
|
||||
sha256 = "904552f7d690686b2602f37494827d09b09fc0a8a2565522b61847bec8d1de8d";
|
||||
propagatedBuildInputs = [regexBase regexPosix];
|
||||
meta = {
|
||||
description = "Replaces/Ehances Text.Regex";
|
||||
description = "Replaces/Enhances Text.Regex";
|
||||
};
|
||||
})
|
||||
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "regex-posix";
|
||||
version = "0.94.1";
|
||||
sha256 = "63e76de0610d35f1b576ae65a25a38e04e758ed64b9b3512de95bdffd649485c";
|
||||
version = "0.72.0.3"; # Haskell Platform 2009.0.0
|
||||
sha256 = "327ab87f3d4f5315a9414331eb382b8b997de8836d577c3f7d232c574606feb1";
|
||||
extraBuildInputs = [regexBase];
|
||||
meta = {
|
||||
description = "Replaces/Ehances Text.Regex";
|
||||
description = "Replaces/Enhances Text.Regex";
|
||||
};
|
||||
})
|
||||
|
||||
|
11
pkgs/development/libraries/haskell/xhtml/default.nix
Normal file
11
pkgs/development/libraries/haskell/xhtml/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{cabal}:
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "xhtml";
|
||||
version = "3000.2.0.1"; # Haskell Platform 2009.0.0
|
||||
sha256 = "60d7a44ae6d607475e2d60c5bf9909b8a3bd88850d52b08ff1532aa6d58bec96";
|
||||
meta = {
|
||||
description = "An XHTML combinator library";
|
||||
};
|
||||
})
|
||||
|
13
pkgs/development/tools/parsing/happy/happy-1.18.2.nix
Normal file
13
pkgs/development/tools/parsing/happy/happy-1.18.2.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{cabal, mtl, perl}:
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "happy";
|
||||
version = "1.18.2"; # Haskell Platform 2009.0.0
|
||||
name = self.fname;
|
||||
sha256 = "7515922f3cfd32cd844a0abfefe0b4871f403f0d869b8644bf9cbfc0b67996ae";
|
||||
extraBuildInputs = [perl];
|
||||
propagatedBuildInputs = [mtl];
|
||||
meta = {
|
||||
description = "Happy is a parser generator for Haskell";
|
||||
};
|
||||
})
|
@ -27,14 +27,14 @@ rec {
|
||||
inherit cabal;
|
||||
};
|
||||
|
||||
maybench = import ../development/libraries/haskell/maybench {
|
||||
inherit cabal benchpress;
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
@ -43,11 +43,19 @@ rec {
|
||||
inherit (pkgs) libedit;
|
||||
inherit cabal;
|
||||
};
|
||||
|
||||
fgl = import ../development/libraries/haskell/fgl {
|
||||
inherit cabal mtl;
|
||||
};
|
||||
|
||||
gtk2hs = import ../development/libraries/haskell/gtk2hs {
|
||||
inherit (pkgs) pkgconfig stdenv fetchurl cairo ghc;
|
||||
inherit (pkgs.gnome) gtk glib GConf libglade libgtkhtml gtkhtml;
|
||||
};
|
||||
|
||||
haskellSrc = import ../development/libraries/haskell/haskell-src {
|
||||
inherit cabal happy;
|
||||
};
|
||||
|
||||
HTTP = import ../development/libraries/haskell/HTTP {
|
||||
inherit cabal;
|
||||
@ -83,6 +91,14 @@ rec {
|
||||
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;
|
||||
};
|
||||
@ -91,6 +107,14 @@ rec {
|
||||
inherit cabal;
|
||||
};
|
||||
|
||||
network = import ../development/libraries/haskell/network {
|
||||
inherit cabal parsec;
|
||||
};
|
||||
|
||||
parallel = import ../development/libraries/haskell/parallel {
|
||||
inherit cabal;
|
||||
};
|
||||
|
||||
parsec = import ../development/libraries/haskell/parsec {
|
||||
inherit cabal;
|
||||
};
|
||||
@ -100,6 +124,10 @@ rec {
|
||||
inherit (pkgs) pcre;
|
||||
};
|
||||
|
||||
QuickCheck = import ../development/libraries/haskell/QuickCheck {
|
||||
inherit cabal;
|
||||
};
|
||||
|
||||
regexBase = import ../development/libraries/haskell/regex-base {
|
||||
inherit cabal mtl;
|
||||
};
|
||||
@ -112,6 +140,10 @@ rec {
|
||||
inherit cabal regexBase;
|
||||
};
|
||||
|
||||
stm = import ../development/libraries/haskell/stm {
|
||||
inherit cabal;
|
||||
};
|
||||
|
||||
uuagc = import ../development/tools/haskell/uuagc {
|
||||
inherit cabal uulib;
|
||||
};
|
||||
@ -135,6 +167,10 @@ rec {
|
||||
xineramaSupport = true;
|
||||
};
|
||||
|
||||
xhtml = import ../development/libraries/haskell/xhtml {
|
||||
inherit cabal;
|
||||
};
|
||||
|
||||
zlib = import ../development/libraries/haskell/zlib {
|
||||
inherit cabal zlib;
|
||||
};
|
||||
@ -175,11 +211,17 @@ rec {
|
||||
inherit cabal;
|
||||
});
|
||||
|
||||
happy = import ../development/tools/parsing/happy/happy-1.17.nix {
|
||||
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;
|
||||
};
|
||||
|
||||
# Applications.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user