summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-modes/tuareg/default.nix
blob: 3fd592f3dba61e3ab146517b1e0b3cba3f0b33af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, emacs }:

# this package installs the emacs-mode which
# resides in the ocaml compiler sources.

let version = "2.0.6";

in stdenv.mkDerivation {
  name = "tuareg-mode-${version}";
  src = fetchurl {
    url = https://forge.ocamlcore.org/frs/download.php/882/tuareg-2.0.6.tar.gz;
    sha256 = "ea79ac24623b82ab8047345f8504abca557a537e639d16ce1ac3e5b27f5b1189";
  }; 

  buildInputs = [ emacs ];

  installPhase = ''
    mkdir -p "$out/share/emacs/site-lisp"
    cp *.el *.elc  "$out/share/emacs/site-lisp"
  '';

  meta = {
    homepage = http://caml.inria.fr;
    description = "OCaml mode package for Emacs";
    platforms = stdenv.lib.platforms.unix;
  };
}