nixpkgs/pkgs/applications/editors/emacs-modes/ocaml/default.nix
Eelco Dolstra 40f7b0f9df Another attempt to eradicate ensureDir
See c556a6ea46e71e1907d78b71fab36df30297b3ad.
2014-06-30 14:56:10 +02:00

31 lines
855 B
Nix

{ stdenv, fetchurl, emacs, ocaml }:
# this package installs the emacs-mode which
# resides in the ocaml compiler sources.
let version = stdenv.lib.removePrefix "ocaml-" ocaml.name;
in stdenv.mkDerivation {
name = "ocaml-mode-${version}";
inherit (ocaml) prefixKey src;
# a quick configure to get the Makefile generated. Since
# we do not build the ocaml itself, we don't really
# need it to support any features.
configureFlags = [ "-no-tk" "-no-curses" "-no-pthread" ];
buildInputs = [ emacs ];
dontBuild = true;
installPhase = ''
cd emacs;
mkdir -p "$out/share/emacs/site-lisp" "$out/bin"
EMACSDIR=$out/share/emacs/site-lisp make simple-install install-ocamltags
'';
meta = {
homepage = http://caml.inria.fr;
description = "OCaml mode package for Emacs";
platforms = stdenv.lib.platforms.unix;
};
}