feat: devshells, formatting, zoxide

This commit is contained in:
Henri Saudubray 2025-12-16 16:42:34 +01:00
parent d4ca1cffd2
commit 989f834aa9
9 changed files with 205 additions and 72 deletions

27
devshells/ocaml/flake.lock generated Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1765762245,
"narHash": "sha256-3iXM/zTqEskWtmZs3gqNiVtRTsEjYAedIaLL0mSBsrk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c8cfcd6ccd422e41cc631a0b73ed4d5a925c393d",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

33
devshells/ocaml/flake.nix Normal file
View file

@ -0,0 +1,33 @@
{
description = "OCaml nix-flake devshell.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
};
outputs =
{ self, nixpkgs, ... }:
let
system = "x86_64-linux";
in
{
devShells."${system}".default =
let
pkgs = import nixpkgs {
inherit system;
};
in
pkgs.mkShell {
packages =
with pkgs;
with ocamlPackages;
[
findlib
ocaml
ocaml-lsp
ocamlformat
dune_3
];
};
};
}