summaryrefslogtreecommitdiff
path: root/devenv.nix
diff options
context:
space:
mode:
Diffstat (limited to 'devenv.nix')
-rw-r--r--devenv.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/devenv.nix b/devenv.nix
new file mode 100644
index 0000000..f5fd37b
--- /dev/null
+++ b/devenv.nix
@@ -0,0 +1,27 @@
+{
+ pkgs,
+ config,
+ inputs,
+ ...
+}: let
+ oopkgs = import inputs.nix-ocaml {system = pkgs.system;};
+ opkgs = oopkgs.ocamlPackages;
+in {
+ # https://devenv.sh/packages/
+ env.WTF = pkgs.lib.makeLibraryPath config.packages;
+ packages =
+ (with pkgs; [
+ git
+ pkg-config
+ ])
+ ++ (with oopkgs; [ocaml opam dune_3])
+ ++ (with opkgs; [
+ base
+ core
+ utop
+ ocamlformat
+ csv
+ ocaml-lsp
+ uuseg
+ ]);
+}