2014-02-04 14:47:03 +00:00
|
|
|
{stdenv, fetchurl, emacs}:
|
|
|
|
|
2014-02-13 21:29:34 +00:00
|
|
|
let version = "1.3";
|
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";
|
2014-02-13 21:29:34 +00:00
|
|
|
sha256 = "0p34rgawnqg94vk4lcw14x99rrvsd23dmbwkxz2vax5kq6l8y5yf";
|
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 ];
|
|
|
|
license = "GPL3";
|
|
|
|
};
|
|
|
|
}
|