about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorMartin Bravenboer <martin.bravenboer@logicblox.com>2004-12-06 07:36:56 +0000
committerMartin Bravenboer <martin.bravenboer@logicblox.com>2004-12-06 07:36:56 +0000
commit6863445f2381a8674cdd84e120118d391ba287f6 (patch)
treedea57263ed5161450566385b12dc2ec89ef1b073 /pkgs/applications/editors
parent17f7a05a97cd01ae32345561d680b0bb37f25a11 (diff)
Haskell mode for emacs
svn path=/nixpkgs/trunk/; revision=1832
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/emacs/modes/haskell/builder.sh6
-rw-r--r--pkgs/applications/editors/emacs/modes/haskell/default.nix8
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs/modes/haskell/builder.sh b/pkgs/applications/editors/emacs/modes/haskell/builder.sh
new file mode 100644
index 0000000000000..fff90a5d69cd9
--- /dev/null
+++ b/pkgs/applications/editors/emacs/modes/haskell/builder.sh
@@ -0,0 +1,6 @@
+. $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
diff --git a/pkgs/applications/editors/emacs/modes/haskell/default.nix b/pkgs/applications/editors/emacs/modes/haskell/default.nix
new file mode 100644
index 0000000000000..33a29ae7ddef0
--- /dev/null
+++ b/pkgs/applications/editors/emacs/modes/haskell/default.nix
@@ -0,0 +1,8 @@
+{stdenv, fetchurl}: stdenv.mkDerivation {
+  name = "haskell-mode-1.45";
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://www.haskell.org/haskell-mode/haskell-mode-1.45.tar.gz;
+    md5 = "c609998580cdb9ca8888c7d47d22ca3b";
+  };
+}