added uulib - a ghc library (ghc wrapper is needed to use it with cabal - see comments in builder.sh)

svn path=/nixpkgs/trunk/; revision=4588
This commit is contained in:
Christof Douma 2006-01-25 11:19:21 +00:00
parent 7625850ab3
commit 84e89e2fca
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,36 @@
source $stdenv/setup
#manual setup of ghc
PATH=$ghc/bin:$PATH
#unpack
tar xzf "$src" &&
cd uulib-* &&
#configure
ghc --make Setup.hs -o setup -package Cabal &&
./setup configure --prefix=$out &&
#make
./setup build &&
#install
./setup copy &&
#register package locally (might use wrapper instead of ugly sed)
echo '[]' > package.conf &&
./setup register --gen-script &&
sed "/ghc-pkg/ s|update -|-f package.conf update -|" register.sh > register-local.sh &&
sh register-local.sh &&
mv package.conf $out/ &&
#add dependencies
#dependencies contains a FSO per line
#for ghc : prefix each FSO with -package-conf
#for ghc-pkg : prefix each FSO with -f or --package-conf (note the difference with ghc)
#both : append with package.conf
#
#example: $(sort FSO1/dependencies FSO2/dependencies | uniq | sed 's|^|FSO/|; s|$|/package.conf|')
#no dependencies
touch $out/dependencies

View File

@ -0,0 +1,11 @@
{stdenv, fetchurl, ghc}:
stdenv.mkDerivation {
name = "uulib-0.9.2";
src = fetchurl {
url = http://abaris.zoo.cs.uu.nl:8080/wiki/pub/HUT/Download/uulib-0.9.2-src.tar.gz;
md5 = "0cc9acc6a268e2bc5c8a954e67406e2d";
};
builder = ./builder.sh;
inherit ghc;
}

View File

@ -1248,6 +1248,12 @@ rec {
inherit (xlibs) libXtst;
};
### DEVELOPMENT / LIBRARIES / HASKELL
uulib = import ../development/libraries/haskell/uulib {
inherit stdenv fetchurl ghc;
};
### DEVELOPMENT / PERL MODULES
perlBerkeleyDB = import ../development/perl-modules/BerkeleyDB {

View File

@ -56,6 +56,7 @@ let {
transformers
ghc
uulib
# helium
perl
python