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 :)
13 lines
216 B
Plaintext
13 lines
216 B
Plaintext
(library
|
|
(name aoc)
|
|
(libraries stdio re dune-site)
|
|
(preprocess (pps ppx_regexp)))
|
|
|
|
(install
|
|
(section (site (aoc inputs)))
|
|
(files (glob_files ../inputs/*)))
|
|
|
|
(generate_sites_module
|
|
(module inputs)
|
|
(sites aoc))
|