summaryrefslogtreecommitdiffstats
path: root/flake.nix
blob: 8146942849aaf79f03c8b307a216d16649278c96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# SPDX-FileCopyrightText: Copyright 2025 Alexandre Jesus <https://adbjesus.com>
#
# SPDX-License-Identifier: CC0-1.0

{
  description = "Development shell for Advent of Code 2025";

  inputs = {
    nixpkgs = {
      url = "github:nixos/nixpkgs/nixos-unstable";
    };
  };

  outputs = { self, nixpkgs }:
    let
      system = "x86_64-linux";
      pkgs = import nixpkgs { inherit system; };
    in {
      devShells.${system}.default = pkgs.mkShell {
        nativeBuildInputs = with pkgs; [
          dune_3
          reuse
        ] ++ (with ocamlPackages; [
          ocaml
          ocaml-lsp
          ocamlformat
        ]);
      };
    };
}