My agentic slop goes here. Not intended for anyone else!
1#!/bin/bash
2set -e
3
4echo "Installing OCaml dependencies..."
5sudo apt-get update
6sudo apt-get install -y \
7 build-essential \
8 curl \
9 git \
10 unzip \
11 bubblewrap \
12 m4 \
13 opam \
14 ripgrep \
15 vim \
16 pkg-config \
17 libgmp-dev
18
19echo "Initializing opam..."
20opam init --disable-sandboxing -y
21eval $(opam env)
22
23opam repo add aoah https://tangled.org/anil.recoil.org/aoah-opam-repo.git
24
25echo "Installing OCaml LSP server and common tools..."
26opam install -y \
27 ocaml-lsp-server \
28 dune \
29 merlin \
30 ocamlformat \
31 odoc \
32 utop \
33 cohttp-eio \
34 tls-eio \
35 progress \
36 decompress \
37 eio_main \
38 ezjsonm \
39 decompress \
40 zarith \
41 re \
42 ca-certs \
43 syndic \
44 alcotest \
45 ctypes \
46 ctypes-foreign \
47 lambdasoup \
48 cmarkit \
49 yaml \
50 jekyll-format \
51 jsont \
52 bytesrw \
53 toml \
54 crockford \
55 jsonfeed \
56 yamlt \
57 xdge
58
59echo "Setting up shell environment..."
60echo 'eval $(opam env)' >> ~/.bashrc
61
62echo "OCaml setup complete!"
63opam --version
64ocaml --version
65which ocamllsp