use dune_site module to find inputs

this packages the inputs as part of the build and exposes the directory
to find them via a generated module. this way, inputs are a resource of
the library rather than an input.

this means that `dune exec aoc` and `dune utop` will always find the
file regardless of where they are invoked, which makes developing in
emacs simpler :)
This commit is contained in:
ryan committed 2023-09-21 21:40:21 -07:00
1 parent e1402bc17d
commit 89eb0c7a27
6 files changed
+24 -11

No files matched your search

+3
View File
@@ -15,11 +15,14 @@
(documentation https://url/to/documentation)
(using dune_site 0.1)
(package
(name aoc)
(synopsis "A short synopsis")
(description "A longer description")
(depends ocaml dune)
(sites (lib inputs))
(tags
(topics "to describe" your project)))