summaryrefslogtreecommitdiff
path: root/nix/package/dev-shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/package/dev-shell.nix')
-rw-r--r--nix/package/dev-shell.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nix/package/dev-shell.nix b/nix/package/dev-shell.nix
new file mode 100644
index 0000000..4ace75c
--- /dev/null
+++ b/nix/package/dev-shell.nix
@@ -0,0 +1,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}";
+ };
+}