summaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
authorAlexandre Jesus <adbjesus@gmail.com>2025-12-01 11:44:39 +0000
committerAlexandre Jesus <adbjesus@gmail.com>2025-12-01 11:44:39 +0000
commit735b792bcf2a8cc1fb77c19c42e6362a9abb429f (patch)
tree4f141174fbc2468d2e47b3c30ae7d171197270f2 /flake.nix
downloadaoc2025-735b792bcf2a8cc1fb77c19c42e6362a9abb429f.tar.gz
aoc2025-735b792bcf2a8cc1fb77c19c42e6362a9abb429f.zip
Initial commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..f9de1fc
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,29 @@
+# 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
+ ]);
+ };
+ };
+}