mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
added json Haskell package; improved gtk2hs
svn path=/nixpkgs/trunk/; revision=15460
This commit is contained in:
parent
3adcaa95c4
commit
33b76a9312
|
@ -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
|
||||
|
|
12
pkgs/development/libraries/haskell/json/default.nix
Normal file
12
pkgs/development/libraries/haskell/json/default.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue