Skip to content
Permalink
d792855a57
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
35 lines (34 sloc) 803 Bytes
with import <nixpkgs> {};
let
ocamlPackages = pkgs.recurseIntoAttrs pkgs.ocamlPackages_latest;
ocamlInit = pkgs.writeText "ocamlinit" ''
#use "topfind";;
#thread;;
#camlp4o;;
#require "core";;
#require "core.syntax";;
'';
in
pkgs.mkShell rec {
buildInputs = with pkgs; [
dune
] ++ ( with ocamlPackages;
[
ocaml
core
core_extended
findlib
utop
merlin
ocp-indent
]);
IN_NIX_SHELL = 1;
UTOP_SITE_LISP = "${ocamlPackages.utop}/share/emacs/site-lisp";
MERLIN_SITE_LISP = "${ocamlPackages.merlin}/share/emacs/site-lisp";
OCP_INDENT_SITE_LISP="${ocamlPackages.ocp-indent}/share/emacs/site-lisp";
OCAMLINIT = "${ocamlInit}";
shellHook = ''
alias utop="utop -init ${ocamlInit}"
alias ocaml="ocaml -init ${ocamlInit}"
'';
}