2015-03-19 08:34:33 +00:00
|
|
|
{ stdenv, fetchzip, emacs }:
|
2013-06-08 10:28:49 +00:00
|
|
|
|
|
|
|
# this package installs the emacs-mode which
|
|
|
|
# resides in the ocaml compiler sources.
|
|
|
|
|
2015-03-19 08:34:33 +00:00
|
|
|
let version = "2.0.9";
|
2013-06-08 10:28:49 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "tuareg-mode-${version}";
|
2015-03-19 08:34:33 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocaml/tuareg/releases/download/${version}/tuareg-${version}.tar.gz";
|
2015-05-21 17:59:50 +00:00
|
|
|
sha256 = "13rh5ddwvwwz5jf0n3wagc5m9zq4cbaylnsknzjalryyvipwfyh3";
|
2013-06-08 10:28:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 12:56:10 +00:00
|
|
|
mkdir -p "$out/share/emacs/site-lisp"
|
2013-06-08 10:28:49 +00:00
|
|
|
cp *.el *.elc "$out/share/emacs/site-lisp"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2015-03-19 08:34:33 +00:00
|
|
|
homepage = https://github.com/ocaml/tuareg;
|
2013-06-08 10:28:49 +00:00
|
|
|
description = "OCaml mode package for Emacs";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2015-03-19 08:34:33 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-06-08 10:28:49 +00:00
|
|
|
};
|
|
|
|
}
|