2014-06-12 18:23:48 +01:00
|
|
|
{ stdenv, fetchurl, emacs }:
|
2014-01-06 11:19:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-06-12 18:23:48 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "idris-mode";
|
2014-07-21 10:24:40 +01:00
|
|
|
version = "0.9.14";
|
2014-01-06 11:19:13 +00:00
|
|
|
|
2014-06-12 18:23:48 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/idris-hackers/${pname}/archive/${version}.tar.gz";
|
2014-07-21 10:24:40 +01:00
|
|
|
sha256 = "1qlkbf14mcibp6h5r84fp5xdjspyaw1xdmnkmaxbypwjhhjg4s83";
|
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-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2014-01-06 11:19:13 +00:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|