blob: 7b267a1f8085606ee64b4c9d8640ab65e0caf4c1 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs =
{ nixpkgs, ... }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
devShells.x86_64-linux.default =
let
ocamlPackages = with pkgs.ocaml-ng.ocamlPackages_5_2; [
ocaml
dune_3 # build system
pkgs.opam # package manager
findlib # library manager
ocaml-lsp # language server
earlybird # debug adapter
ocamlformat # formatter
utop # REPL
odoc # documentation generator
alcotest # unit test framework
bisect_ppx # test coverage
qcheck-core # property-based testing
qcheck-alcotest # property-based testing
janeStreet.ppx_inline_test # inline test library
janeStreet.ppx_expect # inline test library
janeStreet.re2 # regular expression library
fmt # pretty printing library
cmdliner # command line library
ppx_deriving # derivers
logs # logging library
menhir # parsing library
];
sysTools = with pkgs; [
go-task
];
in
pkgs.mkShell {
buildInputs = ocamlPackages ++ sysTools;
};
};
}
|