haskell-mode: updated to version 2.4

Pass emacs package to this expression so that we can byte-compile the
lisp files.

svn path=/nixpkgs/trunk/; revision=12301
This commit is contained in:
Peter Simons 2008-07-07 11:49:57 +00:00
parent b030a8a6dd
commit c4b77fbd37
3 changed files with 16 additions and 13 deletions

View file

@ -1,6 +0,0 @@
source $stdenv/setup
mkdir -p $out/emacs/site-lisp
tar zxvf $src
cp haskell-mode*/*.el $out/emacs/site-lisp
cp haskell-mode*/*.hs $out/emacs/site-lisp

View file

@ -1,8 +1,17 @@
{stdenv, fetchurl}: stdenv.mkDerivation {
name = "haskell-mode-1.45";
builder = ./builder.sh;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/haskell-mode-1.45.tar.gz;
md5 = "c609998580cdb9ca8888c7d47d22ca3b";
{stdenv, fetchurl, emacs}:
stdenv.mkDerivation rec
{
name = "haskell-mode-2.4";
src = fetchurl
{
url = "http://www.iro.umontreal.ca/~monnier/elisp/${name}.tar.gz";
sha256 = "1s2dd0clwm0qaq7z43vxx437l48c88yrd3z1a6qhbq8aak9y8jc5";
};
buildInputs = [emacs];
installCommand =
''
ensureDir "$out/share/emacs/site-lisp"
cp *.el *.elc *.hs "$out/share/emacs/site-lisp/"
'';
}

View file

@ -5977,7 +5977,7 @@ let pkgs = rec {
};
haskellMode = import ../applications/editors/emacs-modes/haskell {
inherit fetchurl stdenv;
inherit fetchurl stdenv emacs;
};
hello = import ../applications/misc/hello/ex-2 {