2014-01-06 11:19:13 +00:00
|
|
|
{ stdenv, fetchgit, emacs }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-04-06 19:51:32 +01:00
|
|
|
name = "idris-mode-20140405";
|
2014-01-06 11:19:13 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = https://github.com/idris-hackers/idris-mode.git;
|
2014-04-06 19:51:32 +01:00
|
|
|
rev = "2e2d18fb757da4b42940ebe2a57d7a117175489f";
|
|
|
|
sha256 = "d4b52c6c43c038c94a7464cd9c849cd40c01696c440da8b057c00a9be22f9ac0";
|
2014-01-06 11:19:13 +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 major mode for Idris";
|
2014-02-04 13:56:42 +00:00
|
|
|
homepage = https://github.com/idris-hackers/idris-mode;
|
2014-01-06 11:19:13 +00:00
|
|
|
license = "GPLv3";
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|