forked from mirrors/nixpkgs
* 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
This commit is contained in:
parent
12a05f1638
commit
6e789bc2c8
|
@ -172,6 +172,21 @@ rec {
|
|||
input = desktop.gtksourceview;
|
||||
};
|
||||
|
||||
gtksourceview_24 = stdenv.mkDerivation {
|
||||
name = "gtksourceview-2.4.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://ftp.gnome.org/pub/gnome/sources/gtksourceview/2.4/gtksourceview-2.4.2.tar.bz2;
|
||||
sha256 = "1grc2y817c0xd225l0m92ja35x2bgld5npa4w3g21amkqhdnpka9";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
perl perlXMLParser pkgconfig gnomevfs libbonobo GConf
|
||||
libgnomeprintui libgnomecanvas gettext intltool
|
||||
];
|
||||
propagatedBuildInputs = [gtk libxml2 libgnomeprint];
|
||||
};
|
||||
|
||||
scrollkeeper = import ./scrollkeeper.nix {
|
||||
inherit fetchurl stdenv pkgconfig perl perlXMLParser
|
||||
libxml2 libxslt docbook_xml_dtd_42;
|
||||
|
|
|
@ -2,10 +2,9 @@
|
|||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "binary";
|
||||
version = "0.4.1";
|
||||
sha256 = "bb74824306843da25f6d97c271e2a06ee3a7e05fc529156fb81d7c576688e549";
|
||||
version = "0.5.0.1";
|
||||
sha256 = "1j5injgrwkjwl7lv6sqx4m033s3rrkspq690cb0ckfh267vsyig1";
|
||||
meta = {
|
||||
description = "Efficient, pure binary serialisation using lazy ByteStrings";
|
||||
};
|
||||
})
|
||||
|
||||
|
|
|
@ -1,20 +1,30 @@
|
|||
{stdenv, fetchurl, pkgconfig, ghc, gtk, cairo, GConf, libglade
|
||||
, glib, libgtkhtml, gtkhtml}:
|
||||
{ stdenv, fetchurl, pkgconfig, gnome, cairo
|
||||
, ghc, mtl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtk2hs";
|
||||
version = "0.9.12.1";
|
||||
version = "0.10.0";
|
||||
fname = "${pname}-${version}";
|
||||
name = "haskell-${fname}";
|
||||
name = "haskell-${pname}-ghc${ghc.ghc.version}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/${pname}/${fname}.tar.gz";
|
||||
sha256 = "110z6v9gzhg6nzlz5gs8aafmipbva6rc50b8z1jgq0k2g25hfy22";
|
||||
sha256 = "03ii8j13cphjpw23nnyp0idxqgd2r8m4f2jpb251g7vxrb56dw0v";
|
||||
};
|
||||
|
||||
buildInputs = [pkgconfig ghc gtk glib cairo GConf libglade libgtkhtml gtkhtml];
|
||||
propagatedBuildInputs = [mtl];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-cairo"
|
||||
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/
|
||||
''; # */
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ cabal.mkDerivation (self : {
|
|||
pname = "regex-posix";
|
||||
version = "0.72.0.3"; # Haskell Platform 2009.0.0
|
||||
sha256 = "327ab87f3d4f5315a9414331eb382b8b997de8836d577c3f7d232c574606feb1";
|
||||
extraBuildInputs = [regexBase];
|
||||
propagatedBuildInputs = [regexBase];
|
||||
meta = {
|
||||
description = "Replaces/Enhances Text.Regex";
|
||||
};
|
||||
|
|
10
pkgs/development/libraries/haskell/utf8-string/default.nix
Normal file
10
pkgs/development/libraries/haskell/utf8-string/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{cabal}:
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "utf8-string";
|
||||
version = "0.3.4";
|
||||
sha256 = "1gd5b5q5jw70mg0z8jjgqigc0wmvnc7fx2k3yfdsz20b9wsjfw7r";
|
||||
meta = {
|
||||
description = "A UTF8 layer for IO and Strings";
|
||||
};
|
||||
})
|
|
@ -53,8 +53,8 @@ rec {
|
|||
};
|
||||
|
||||
gtk2hs = import ../development/libraries/haskell/gtk2hs {
|
||||
inherit (pkgs) pkgconfig stdenv fetchurl cairo ghc;
|
||||
inherit (pkgs.gnome) gtk glib GConf libglade libgtkhtml gtkhtml;
|
||||
inherit ghc mtl;
|
||||
inherit (pkgs) stdenv fetchurl pkgconfig gnome cairo;
|
||||
};
|
||||
|
||||
haskellSrc = import ../development/libraries/haskell/haskell-src {
|
||||
|
@ -152,6 +152,10 @@ rec {
|
|||
inherit cabal;
|
||||
};
|
||||
|
||||
utf8_string = import ../development/libraries/haskell/utf8-string {
|
||||
inherit cabal;
|
||||
};
|
||||
|
||||
uuagc = import ../development/tools/haskell/uuagc {
|
||||
inherit cabal uulib;
|
||||
};
|
||||
|
@ -236,6 +240,7 @@ rec {
|
|||
inherit (pkgs) perl;
|
||||
};
|
||||
|
||||
|
||||
# Applications.
|
||||
|
||||
darcs = import ../applications/version-management/darcs/darcs-2.nix {
|
||||
|
@ -243,6 +248,11 @@ rec {
|
|||
inherit (pkgs) zlib curl;
|
||||
};
|
||||
|
||||
leksah = import ../applications/editors/leksah {
|
||||
inherit cabal gtk2hs binary parsec regexPosix utf8_string;
|
||||
inherit (pkgs) libedit;
|
||||
};
|
||||
|
||||
xmobar = import ../applications/misc/xmobar {
|
||||
inherit cabal;
|
||||
inherit (pkgs) X11;
|
||||
|
|
|
@ -121,8 +121,6 @@ in {
|
|||
gcc34 = linux;
|
||||
gcc43multi = ["x86_64-linux"];
|
||||
gdb = all;
|
||||
ghc683 = ghcSupported;
|
||||
ghc6102 = ghcSupported;
|
||||
ghostscript = linux;
|
||||
ghostscriptX = linux;
|
||||
gimp = linux;
|
||||
|
@ -329,6 +327,23 @@ in {
|
|||
gtk = linux;
|
||||
};
|
||||
|
||||
haskellPackages_ghc683 = {
|
||||
ghc = ghcSupported;
|
||||
};
|
||||
|
||||
haskellPackages_ghc6101 = {
|
||||
ghc = ghcSupported;
|
||||
leksah = ghcSupported;
|
||||
};
|
||||
|
||||
haskellPackages_ghc6102 = {
|
||||
darcs = ghcSupported;
|
||||
ghc = ghcSupported;
|
||||
gtk2hs = ghcSupported;
|
||||
lhs2tex = ghcSupported;
|
||||
xmonad = ghcSupported;
|
||||
};
|
||||
|
||||
kde3 = {
|
||||
kdebase = linux;
|
||||
kdelibs = linux;
|
||||
|
|
Loading…
Reference in a new issue