2009-04-19 15:58:13 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gnome, cairo
|
|
|
|
, ghc, mtl
|
|
|
|
}:
|
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 {
|
2008-01-25 13:42:07 +01:00
|
|
|
url = "mirror://sourceforge/${pname}/${fname}.tar.gz";
|
2009-04-19 15:58:13 +02:00
|
|
|
sha256 = "03ii8j13cphjpw23nnyp0idxqgd2r8m4f2jpb251g7vxrb56dw0v";
|
2007-11-12 14:48:33 +01: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 = [
|
|
|
|
pkgconfig cairo gnome.glib gnome.gtk gnome.libglade gnome.GConf
|
|
|
|
gnome.gtksourceview_24 gnome.librsvg
|
|
|
|
ghc
|
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/
|
|
|
|
''; # */
|
|
|
|
}
|