2014-02-04 14:47:03 +00:00
|
|
|
{stdenv, fetchurl, emacs}:
|
|
|
|
|
2015-04-08 15:03:56 +01:00
|
|
|
let version = "2.0.2";
|
2014-02-04 14:47:03 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "writegood-mode-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/bnbeckwith/writegood-mode/archive/v${version}.tar.gz";
|
2015-04-08 15:03:56 +01:00
|
|
|
sha256 = "1ilbqj24vzpfh9n1wph7idj0914ga290jkpv9kr1pff3a0v5hf6k";
|
2014-02-04 14:47:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2014-02-04 14:47:03 +00:00
|
|
|
};
|
|
|
|
}
|