mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
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:
parent
7625850ab3
commit
84e89e2fca
36
pkgs/development/libraries/haskell/uulib/builder.sh
Normal file
36
pkgs/development/libraries/haskell/uulib/builder.sh
Normal 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
|
11
pkgs/development/libraries/haskell/uulib/default.nix
Normal file
11
pkgs/development/libraries/haskell/uulib/default.nix
Normal 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;
|
||||
}
|
@ -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 {
|
||||
|
@ -56,6 +56,7 @@ let {
|
||||
transformers
|
||||
|
||||
ghc
|
||||
uulib
|
||||
# helium
|
||||
perl
|
||||
python
|
||||
|
Loading…
Reference in New Issue
Block a user