Skip to content

Commit

Permalink
Add install_package to install
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahbeckford committed Mar 1, 2024
1 parent f2cbcc5 commit fdef036
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Pending

* Add `package` to `executable` and `library`
* Add `install_package` to `install`
* Add `copy_with_source_directive` which implements the `copy#` action.

## 0.1.3
Expand Down
3 changes: 3 additions & 0 deletions src/dsl/dune.ml
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ module type SYM = sig
- ["(site (<package> <site>))"] installs in the <site> directory of <package>. If the prefix isn't the same as the one used when installing <package>, <package> won't find the files.
*)

val install_package : string -> [ `Install ] repr
(** [install_package] specifies the package the install rule is part of. *)

val install_files : [ `InstallDestination ] repr list -> [ `Install ] repr
(** {{:https://dune.readthedocs.io/en/stable/dune-files.html#install-1}}. *)

Expand Down
3 changes: 2 additions & 1 deletion src/show/DkmlDuneDslShow.ml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module I : DkmlDuneDsl.Dune.SYM with type 'a repr = args -> out = struct
> quote it: ("x" y z).
So:
+ all one-element lists are promoted into atoms (which is not sufficient by itself)
+ all lists with an atom as the first argument are prepended with the empty set
expression (:standard \ :standard)
Expand Down Expand Up @@ -477,6 +477,7 @@ module I : DkmlDuneDsl.Dune.SYM with type 'a repr = args -> out = struct
(** {3 Install} *)

let section s args = _arg_of_string ~args "section" s
let install_package s args = _arg_of_string ~args "package" s
let install_files l args = _list ([ _atom "files" ] @ _spread args l)

let destination_file ~filename ~destination args =
Expand Down

0 comments on commit fdef036

Please sign in to comment.