about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2014-02-04 15:47:03 +0100
committerPascal Wittmann <mail@pascal-wittmann.de>2014-02-04 16:01:35 +0100
commit351e0703664101e51874663a68aee8a772e07231 (patch)
tree2100a0be84a00d275970da1cd77c7915e7be65fe /pkgs/applications/editors
parent177b0a0e8b467858469e09977561abf83467b6af (diff)
downloadnixlib-351e0703664101e51874663a68aee8a772e07231.tar
nixlib-351e0703664101e51874663a68aee8a772e07231.tar.gz
nixlib-351e0703664101e51874663a68aee8a772e07231.tar.bz2
nixlib-351e0703664101e51874663a68aee8a772e07231.tar.lz
nixlib-351e0703664101e51874663a68aee8a772e07231.tar.xz
nixlib-351e0703664101e51874663a68aee8a772e07231.tar.zst
nixlib-351e0703664101e51874663a68aee8a772e07231.zip
Add emacs minor mode writegood
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/emacs-modes/writegood/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/writegood/default.nix b/pkgs/applications/editors/emacs-modes/writegood/default.nix
new file mode 100644
index 000000000000..c4dbde9e0d23
--- /dev/null
+++ b/pkgs/applications/editors/emacs-modes/writegood/default.nix
@@ -0,0 +1,30 @@
+{stdenv, fetchurl, emacs}:
+
+let version = "1.2";
+
+in stdenv.mkDerivation {
+  name = "writegood-mode-${version}";
+  src = fetchurl {
+    url = "https://github.com/bnbeckwith/writegood-mode/archive/v${version}.tar.gz";
+    sha256 = "1kgi2i5pq0vk751z079yp7kdw721cclfg9d9p28h3a8xbr95l7b6";
+  };
+
+  buildInputs = [ emacs ];
+
+  buildPhase = ''
+    emacs -L . --batch -f batch-byte-compile *.el
+  '';
+
+  installPhase = ''
+    install -d $out/share/emacs/site-lisp
+    install *.el *.elc $out/share/emacs/site-lisp
+  '';
+
+  meta = {
+    description = "Emacs minor mode that aids in finding common writing problems";
+    homepage = https://github.com/bnbeckwith/writegood-mode;
+    platforms = stdenv.lib.platforms.all;
+    maintainers = [ stdenv.lib.maintainers.pSub ];
+    license = "GPL3";
+  };
+}