summaryrefslogtreecommitdiff
path: root/2025
diff options
context:
space:
mode:
Diffstat (limited to '2025')
-rw-r--r--2025/ocaml/README.md14
-rw-r--r--2025/ocaml/advent_of_code_2025.opam (renamed from 2025/ocaml/ocaml_template.opam)15
-rw-r--r--2025/ocaml/bin/dune4
-rw-r--r--2025/ocaml/dune-project14
-rw-r--r--2025/ocaml/lib/dune2
-rw-r--r--2025/ocaml/test/dune2
-rw-r--r--2025/ocaml/test/test_advent_of_code_2025.ml (renamed from 2025/ocaml/test/test_ocaml_template.ml)0
7 files changed, 22 insertions, 29 deletions
diff --git a/2025/ocaml/README.md b/2025/ocaml/README.md
index 2500c9e..22a7918 100644
--- a/2025/ocaml/README.md
+++ b/2025/ocaml/README.md
@@ -1,12 +1,4 @@
-# OCaml Template
-
-This is a template for OCaml projects.
-
-## Quick Start
-
-1. Fork this repository
-2. Rename the repository to your project name
-3. Replace all instances of `ocaml_template` with your project name, both in files and filenames themselves.
+# Advent of Code 2025
## Project Structure
@@ -29,8 +21,8 @@ This is a template for OCaml projects.
├── dune-project # dune project configuration
├── flake.lock
├── flake.nix # nix flake configuration
-├── ocaml_template.install # autogenerated install script
-└── ocaml_template.opam # autogenerated project description
+├── advent_of_code_2025.install # autogenerated install script
+└── advent_of_code_2025.opam # autogenerated project description
```
## Tools
diff --git a/2025/ocaml/ocaml_template.opam b/2025/ocaml/advent_of_code_2025.opam
index cfd03c4..3a50035 100644
--- a/2025/ocaml/ocaml_template.opam
+++ b/2025/ocaml/advent_of_code_2025.opam
@@ -1,14 +1,15 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
-synopsis: "A template for OCaml projects"
-description: "A template for OCaml projects using Dune"
+synopsis: "Advent of Code 2025"
+description: "Solutions to the puzzles from Advent of Code 2025"
maintainer: ["DJ O'Leary <dijitol@proton.me>"]
authors: ["DJ O'Leary <dijitol@proton.me>"]
license: "Unlicense"
-tags: ["project template"]
-homepage: "https://github.com/djoleary/ocaml_template"
-doc: "https://github.com/djoleary/ocaml_template/docs/index.html"
-bug-reports: "https://github.com/djoleary/ocaml_template/issues"
+tags: ["Advent of Code 2025"]
+homepage: "https://github.com/djoleary/advent_of_code"
+doc:
+ "https://github.com/djoleary/advent_of_code/blob/main/2025/ocaml/docs/index.html"
+bug-reports: "https://github.com/djoleary/advent_of_code/issues"
depends: [
"dune" {>= "3.20"}
"ocaml"
@@ -29,5 +30,5 @@ build: [
"@doc" {with-doc}
]
]
-dev-repo: "git+https://github.com/djoleary/ocaml_template.git"
+dev-repo: "git+https://github.com/djoleary/advent_of_code.git"
x-maintenance-intent: ["(latest)"]
diff --git a/2025/ocaml/bin/dune b/2025/ocaml/bin/dune
index 4768523..a912fd0 100644
--- a/2025/ocaml/bin/dune
+++ b/2025/ocaml/bin/dune
@@ -1,4 +1,4 @@
(executable
- (public_name ocaml_template)
+ (public_name advent_of_code_2025)
(name main)
- (libraries ocaml_template))
+ (libraries advent_of_code_2025))
diff --git a/2025/ocaml/dune-project b/2025/ocaml/dune-project
index 5e5d724..649d68f 100644
--- a/2025/ocaml/dune-project
+++ b/2025/ocaml/dune-project
@@ -1,11 +1,11 @@
(lang dune 3.20)
-(name ocaml_template)
+(name advent_of_code_2025)
(generate_opam_files true)
(source
- (github djoleary/ocaml_template))
+ (github djoleary/advent_of_code))
(authors "DJ O'Leary <dijitol@proton.me>")
@@ -13,14 +13,14 @@
(license Unlicense)
-(documentation https://github.com/djoleary/ocaml_template/docs/index.html)
+(documentation https://github.com/djoleary/advent_of_code/blob/main/2025/ocaml/docs/index.html)
(package
- (name ocaml_template)
- (synopsis "A template for OCaml projects")
- (description "A template for OCaml projects using Dune")
+ (name advent_of_code_2025)
+ (synopsis "Advent of Code 2025")
+ (description "Solutions to the puzzles from Advent of Code 2025")
(depends ocaml (alcotest :with-test))
(tags
- ("project template")))
+ ("Advent of Code 2025")))
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/reference/dune-project/index.html
diff --git a/2025/ocaml/lib/dune b/2025/ocaml/lib/dune
index 99d3a78..b279360 100644
--- a/2025/ocaml/lib/dune
+++ b/2025/ocaml/lib/dune
@@ -1,2 +1,2 @@
(library
- (name ocaml_template))
+ (name advent_of_code_2025))
diff --git a/2025/ocaml/test/dune b/2025/ocaml/test/dune
index e630fdd..c90f542 100644
--- a/2025/ocaml/test/dune
+++ b/2025/ocaml/test/dune
@@ -1,3 +1,3 @@
(test
(libraries alcotest)
- (name test_ocaml_template))
+ (name test_advent_of_code_2025))
diff --git a/2025/ocaml/test/test_ocaml_template.ml b/2025/ocaml/test/test_advent_of_code_2025.ml
index e69de29..e69de29 100644
--- a/2025/ocaml/test/test_ocaml_template.ml
+++ b/2025/ocaml/test/test_advent_of_code_2025.ml