nixpkgs/pkgs/development/libraries/haskell/gtk2hs/default.nix
Eelco Dolstra 6e789bc2c8 * Added Leksah, an IDE for Haskell. It requires a newer version of
gtksourceview than the one provided in gnome/default.nix.  The
  stdenv branch already has this.
* Updated gtk2hs to 0.10.1.

svn path=/nixpkgs/trunk/; revision=15154
2009-04-19 13:58:13 +00:00

31 lines
719 B
Nix

{ stdenv, fetchurl, pkgconfig, gnome, cairo
, ghc, mtl
}:
stdenv.mkDerivation rec {
pname = "gtk2hs";
version = "0.10.0";
fname = "${pname}-${version}";
name = "haskell-${pname}-ghc${ghc.ghc.version}-${version}";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${fname}.tar.gz";
sha256 = "03ii8j13cphjpw23nnyp0idxqgd2r8m4f2jpb251g7vxrb56dw0v";
};
propagatedBuildInputs = [mtl];
buildInputs = [
pkgconfig cairo gnome.glib gnome.gtk gnome.libglade gnome.GConf
gnome.gtksourceview_24 gnome.librsvg
ghc
];
postInstall =
''
local confDir=$out/lib/ghc-pkgs/ghc-${ghc.ghc.version}
ensureDir $confDir
cp $out/lib/gtk2hs/*.conf $confDir/
''; # */
}