2014-09-05 16:04:50 +02:00
|
|
|
{stdenv, fetchurl, emacs}:
|
|
|
|
|
2015-09-01 15:47:51 +02:00
|
|
|
let
|
|
|
|
version = "2.11.0";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2014-09-05 16:04:50 +02:00
|
|
|
name = "emacs-dash-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/magnars/dash.el/archive/${version}.tar.gz";
|
2015-09-01 15:47:51 +02:00
|
|
|
sha256 = "1piwcwilkxcbjxx832mhb7q3pz1fgwp203r581bpqcw6kd5x726q";
|
2014-09-05 16:04:50 +02: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
|
|
|
|
'';
|
|
|
|
}
|