mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
29 lines
744 B
Nix
29 lines
744 B
Nix
{ stdenv, fetchzip, emacs }:
|
|
|
|
# this package installs the emacs-mode which
|
|
# resides in the ocaml compiler sources.
|
|
|
|
let version = "2.0.9";
|
|
|
|
in stdenv.mkDerivation {
|
|
name = "tuareg-mode-${version}";
|
|
src = fetchzip {
|
|
url = "https://github.com/ocaml/tuareg/releases/download/${version}/tuareg-${version}.tar.gz";
|
|
sha256 = "13rh5ddwvwwz5jf0n3wagc5m9zq4cbaylnsknzjalryyvipwfyh3";
|
|
};
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/share/emacs/site-lisp"
|
|
cp *.el *.elc "$out/share/emacs/site-lisp"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://github.com/ocaml/tuareg;
|
|
description = "OCaml mode package for Emacs";
|
|
platforms = stdenv.lib.platforms.unix;
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
};
|
|
}
|