2009-04-19 21:06:34 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gnome, cairo, ghc, mtl }:
|
|
|
|
|
|
|
|
let gtksourceview = gnome.gtksourceview_24; in
|
2007-11-12 14:48:33 +01:00
|
|
|
|
2009-04-19 15:58:13 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2008-01-25 13:42:07 +01:00
|
|
|
pname = "gtk2hs";
|
2009-04-19 15:58:13 +02:00
|
|
|
version = "0.10.0";
|
2008-01-25 13:42:07 +01:00
|
|
|
fname = "${pname}-${version}";
|
2009-04-19 15:58:13 +02:00
|
|
|
name = "haskell-${pname}-ghc${ghc.ghc.version}-${version}";
|
|
|
|
|
2007-11-12 14:48:33 +01:00
|
|
|
src = fetchurl {
|
2009-04-19 21:06:34 +02:00
|
|
|
url = http://nixos.org/tarballs/gtk2hs-0.10.0-20090419.tar.gz;
|
|
|
|
sha256 = "18a7cfph83yvv91ks37nrgqrn21fvww8bhb8nd8xy1mgb8lnfds1";
|
2007-11-12 14:48:33 +01:00
|
|
|
};
|
2009-04-19 21:06:34 +02:00
|
|
|
|
2009-04-19 15:58:13 +02:00
|
|
|
propagatedBuildInputs = [mtl];
|
2007-11-12 14:48:33 +01:00
|
|
|
|
2009-04-19 15:58:13 +02:00
|
|
|
buildInputs = [
|
2009-04-19 21:06:34 +02:00
|
|
|
pkgconfig cairo ghc gnome.glib gnome.gtk gnome.libglade
|
|
|
|
gnome.GConf gtksourceview gnome.librsvg
|
2007-11-12 14:48:33 +01:00
|
|
|
];
|
|
|
|
|
2009-04-19 15:58:13 +02:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
local confDir=$out/lib/ghc-pkgs/ghc-${ghc.ghc.version}
|
|
|
|
ensureDir $confDir
|
|
|
|
cp $out/lib/gtk2hs/*.conf $confDir/
|
|
|
|
''; # */
|
2009-04-19 21:06:34 +02:00
|
|
|
|
|
|
|
passthru = { inherit gtksourceview; };
|
2009-04-19 15:58:13 +02:00
|
|
|
}
|