diff options
| author | DJ O'Leary <dijitol@proton.me> | 2025-11-19 14:21:01 +0100 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2025-11-19 14:21:01 +0100 |
| commit | 9fe544d9f7acc493fbd1bd76facaa7bfe435ca37 (patch) | |
| tree | 9614e336eb4836ea715c153fcfb319922a3a35f1 /2025/ocaml/flake.nix | |
| parent | def813adf8ca5bf6f42edf9489ed07f32795355b (diff) | |
chore: clone ocaml_template for 2025
Diffstat (limited to '2025/ocaml/flake.nix')
| -rw-r--r-- | 2025/ocaml/flake.nix | 47 |
1 files changed, 47 insertions, 0 deletions
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 |
