2014-06-12 19:23:48 +02:00
|
|
|
{ stdenv, fetchurl, emacs }:
|
2014-01-06 12:19:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-06-12 19:23:48 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "idris-mode";
|
2015-05-31 15:51:01 +02:00
|
|
|
version = "0.9.18";
|
2014-01-06 12:19:13 +01:00
|
|
|
|
2014-06-12 19:23:48 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/idris-hackers/${pname}/archive/${version}.tar.gz";
|
2015-05-31 15:51:01 +02:00
|
|
|
sha256 = "06rw5lrxqqnw0kni3x9jm73x352d1vb683d41v8x3yzqfa2sxmwg";
|
2014-01-06 12:19:13 +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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Emacs major mode for Idris";
|
2014-02-04 14:56:42 +01:00
|
|
|
homepage = https://github.com/idris-hackers/idris-mode;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2014-01-06 12:19:13 +01:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|