2014-09-05 15:04:50 +01:00
|
|
|
{stdenv, fetchurl, emacs}:
|
|
|
|
|
2015-09-01 14:47:51 +01:00
|
|
|
let
|
2015-10-30 13:33:24 +00:00
|
|
|
version = "2.12.1";
|
2015-09-01 14:47:51 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2014-09-05 15:04:50 +01:00
|
|
|
name = "emacs-dash-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/magnars/dash.el/archive/${version}.tar.gz";
|
2015-10-30 13:33:24 +00:00
|
|
|
sha256 = "082jl7mp4x063bpj5ad2pc5125k0d6p7rb89gcj7ny3lma9h2ij1";
|
2014-09-05 15:04:50 +01: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
|
|
|
|
'';
|
|
|
|
}
|