summaryrefslogtreecommitdiff
path: root/nix/package/dev-shell.nix
blob: 4ace75c65ade78d296ab94206023447ae3993318 (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
#──────────────────────────────────────────────────────────────────────────────┐
# SPDX-FileCopyrightText: 2025 toastal <https://toast.al/contact/>             │
# SPDX-License-Identifier: LGPL-2.1-or-later                                   │
#──────────────────────────────────────────────────────────────────────────────┘
{
   mkShell,
   kdlfmt,
   topiary,
   ocamlPackages,
   nixtamal,
   nixfmt-3-space,
   ocamlformat-rpc-bin,
}:

mkShell {
   name = "nixtamal";
   inputsFrom = [
      nixtamal
   ];
   packages = [
      kdlfmt
      nixfmt-3-space
      topiary

      ocamlPackages.alcotest
      ocamlPackages.ocaml-lsp
      ocamlformat-rpc-bin # 💢 why does the LSP depend on ocamlformat‽
   ];
   env = {
      TOPIARY_CONFIG_FILE = "${../../.topiary.ncl}";
   };
}