Open smondet opened 5 years ago
Why not, but we might as well use the same syntax as dune files rather than invent something new:
#! /usr/bin/env dune run
#! (libraries cmdliner base) (preprocess (pps ppx_sexp_conv)) ...
...
We should also compile that in the xdg cache dir, to avoid recompiling it on every run. For instance in ~/.cache/dune/scripts/<hash-of-file-contents>/
.
Something to build executables in
$TMPDIR
and run them which could look like:(the second-line of
#!
is whatnix-shell
does also http://chriswarbo.net/projects/nixos/nix_shell_shebangs.html )