added json Haskell package; improved gtk2hs

svn path=/nixpkgs/trunk/; revision=15460
This commit is contained in:
Andres Löh 2009-05-05 23:06:01 +00:00
parent 3adcaa95c4
commit 33b76a9312
3 changed files with 25 additions and 0 deletions

View File

@ -20,10 +20,19 @@ stdenv.mkDerivation rec {
gnome.GConf gtksourceview gnome.librsvg
];
preConfigure =
''
sed -i gio/gio.package.conf.in -e 's|@GIO_LIBDIR_CQ@|"${gnome.glib}/lib", "${gnome.glib}/lib64", @GIO_LIBDIR_CQ@|'
sed -i gtk/gtk.package.conf.in -e 's|@GTK_LIBDIR_CQ@|"${gnome.glib}/lib", "${gnome.glib}/lib64", @GTK_LIBDIR_CQ@|'
'';
configureFlags = ["--without-pkgreg"];
postInstall =
''
local confDir=$out/lib/ghc-pkgs/ghc-${ghc.ghc.version}
local installedPkgConf=$confDir/${fname}.installedconf
ensureDir $out/bin # necessary to get it added to PATH
ensureDir $confDir
echo $installedPkgConf
echo '[]' > $installedPkgConf

View File

@ -0,0 +1,12 @@
{cabal, mtl}:
cabal.mkDerivation (self : {
pname = "json";
version = "0.4.3";
sha256 = "56192d1e922cc71ad1aaf31baea8ee7e1f1b862f95bc72f60548caee4a484a87";
propagatedBuildInputs = [mtl];
meta = {
description = "Support for serialising Haskell to and from JSON";
};
})

View File

@ -149,6 +149,10 @@ rec {
inherit cabal;
};
json = import ../development/libraries/haskell/json {
inherit cabal mtl;
};
maybench = import ../development/libraries/haskell/maybench {
inherit cabal benchpress;
};