source

(source ...)

Added in version 1.7.

Specify where the source for the package can be found.

It can be specified as (uri <uri>) or using shortcuts for some hosting services:

Valid for all packages defined in the current Dune project. May be overriden by the per-package field (see package).

Service

Syntax

Github

(github user/repo)

Bitbucket

(bitbucket user/repo)

Gitlab

(gitlab user/repo)
(gitlab organization/project/repo) (New in 3.17)

Sourcehut

(sourcehut user/repo)

Codeberg

(codeberg user/repo) (New in 3.17)

Tangled

(tangled @user.domain/repo) (New in 3.21)

Examples:

(source
 (github ocaml/dune))
(source
 (uri https://dev.example.com/project.git))