3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/emacs-modes/idris/default.nix

32 lines
726 B
Nix
Raw Normal View History

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";
version = "0.9.13.1";
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";
sha256 = "0ymjbkwsq7qra691wyldw91xcdgrbx3468vvrha5jj92v7nwb8wx";
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";
homepage = https://github.com/idris-hackers/idris-mode;
2014-01-06 11:19:13 +00:00
license = "GPLv3";
platforms = stdenv.lib.platforms.all;
};
}