about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2014-03-01 10:00:36 +0100
committerPeter Simons <simons@cryp.to>2014-03-03 11:55:26 +0100
commitaf3cf0dbeb56eb0e67d949ea7126640f4f394a43 (patch)
tree3805f62a70a75d33cc1e3e74bbf8842339d4b632 /pkgs/applications/editors
parent6422bd7ecdb8d0a110980f0b2742c3d025e94700 (diff)
downloadnixlib-af3cf0dbeb56eb0e67d949ea7126640f4f394a43.tar
nixlib-af3cf0dbeb56eb0e67d949ea7126640f4f394a43.tar.gz
nixlib-af3cf0dbeb56eb0e67d949ea7126640f4f394a43.tar.bz2
nixlib-af3cf0dbeb56eb0e67d949ea7126640f4f394a43.tar.lz
nixlib-af3cf0dbeb56eb0e67d949ea7126640f4f394a43.tar.xz
nixlib-af3cf0dbeb56eb0e67d949ea7126640f4f394a43.tar.zst
nixlib-af3cf0dbeb56eb0e67d949ea7126640f4f394a43.zip
Add structured-haskell-mode
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/emacs-modes/structured-haskell-mode/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/structured-haskell-mode/default.nix b/pkgs/applications/editors/emacs-modes/structured-haskell-mode/default.nix
new file mode 100644
index 000000000000..25055df8ea35
--- /dev/null
+++ b/pkgs/applications/editors/emacs-modes/structured-haskell-mode/default.nix
@@ -0,0 +1,23 @@
+{ cabal, emacs, haskellSrcExts }:
+
+cabal.mkDerivation (self: {
+  pname = "structured-haskell-mode";
+  version = "1.0.2";
+  sha256 = "1lwdhlr38y5hdr78nplplr3q0hrjhryw378f1857qh0lvp03gwl2";
+  isLibrary = false;
+  isExecutable = true;
+  buildDepends = [ haskellSrcExts ];
+  buildTools = [ emacs ];
+  postInstall = ''
+    emacs -L elisp --batch -f batch-byte-compile "elisp/"*.el
+    install -d $out/share/emacs/site-lisp
+    install "elisp/"*.elc $out/share/emacs/site-lisp
+  '';
+  meta = {
+    homepage = "https://github.com/chrisdone/structured-haskell-mode";
+    description = "Structured editing Emacs mode for Haskell";
+    license = self.stdenv.lib.licenses.bsd3;
+    platforms = self.ghc.meta.platforms;
+    maintainers = [ self.stdenv.lib.maintainers.pSub ];
+  };
+})