From 9fe544d9f7acc493fbd1bd76facaa7bfe435ca37 Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Wed, 19 Nov 2025 14:21:01 +0100 Subject: chore: clone ocaml_template for 2025 --- 2025/ocaml/flake.nix | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 2025/ocaml/flake.nix (limited to '2025/ocaml/flake.nix') diff --git a/2025/ocaml/flake.nix b/2025/ocaml/flake.nix new file mode 100644 index 0000000..9f27e56 --- /dev/null +++ b/2025/ocaml/flake.nix @@ -0,0 +1,47 @@ +{ + 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 + + alcotest # unit test framework + bisect_ppx # test coverage + + odoc # documentation generator + + menhir # parser generator library + janeStreet.re2 # regular expression library + fmt # pretty printing library + cmdliner # command line library + ]; + sysTools = with pkgs; [ + go-task + gh + ]; + in + pkgs.mkShell { + buildInputs = ocamlPackages ++ sysTools; + }; + }; +} \ No newline at end of file -- cgit v1.2.3