2015-03-19 08:34:33 +00:00
|
|
|
{ stdenv, fetchzip, emacs }:
|
2013-06-08 11:28:49 +01: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 11:28:49 +01: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 18:59:50 +01:00
|
|
|
sha256 = "13rh5ddwvwwz5jf0n3wagc5m9zq4cbaylnsknzjalryyvipwfyh3";
|
2013-06-08 11:28:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p "$out/share/emacs/site-lisp"
|
2013-06-08 11:28:49 +01: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 11:28:49 +01: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 11:28:49 +01:00
|
|
|
};
|
|
|
|
}
|