[ANN] opam-bundle 0.1: generate self-contained, distributable source package bundles

Announcing opam-bundle, a new opam tool/plugin that generates inclusive .tar.gz archives from opam packages.

Usage: opam bundle <packages>

All dependencies are downloaded, and put in the tarball with their dependencies.

The generated bundle includes scripts to bootstrap OCaml, opam, depext, install the requested packages into the untarred directory, and put wrappers into a prefix of your choice. Just run bundle-dir/compile.sh. Except for getting the depexts, when necessary, no internet access is required to install the tarball.

Additional options allow to choose the repositories, OCaml version, and to generate a self-extracting file besides the tar.gz.

Feedback is welcome at https://github.com/AltGr/opam-bundle/issues !
Future plans include generation of bundles including pinned packages and/or local switch setups. This may get integrated into opam.

10 Likes

New version 0.2 released, featuring:

  • various bug fixes, incl. support for the camlp4 package
  • interface improvements (limit the number of sudo calls, show the actual arch/os constraints of the bundle upon generation, detect missing base dependencies at beginning of bootstrap (cc, patch…) etc.)
  • the ability to use a custom package source (use package@URL on the command-line)