blob: bd9cc09b0d7b955d249e7c9d19d80ee16c67ebb5 (
plain)
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
28
29
30
31
32
33
34
35
|
{ }:
let
config = {
allowUnfree = true;
};
pkgs = import <nixpkgs> { inherit config; };
# choose the ocaml version you want to use
ocamlPackages = pkgs.ocaml-ng.ocamlPackages_5_2;
in
pkgs.mkShell {
# build tools
nativeBuildInputs = with ocamlPackages; [
pkgs.opam
ocaml
findlib
dune_3
];
# dependencies
buildInputs = with ocamlPackages; [
bisect_ppx
findlib
menhir
ocaml-lsp
earlybird
ocamlformat
ocamlgraph
odoc
ounit2
re2
utop
pkgs.gh # GitHub CLI
];
}
|