summary refs log tree commit diff
path: root/doc/languages-frameworks/coq.section.md
diff options
context:
space:
mode:
authorThéo Zimmermann <theo.zimmermann@inria.fr>2021-08-16 22:38:17 +0200
committerThéo Zimmermann <theo.zimmermann@inria.fr>2021-08-17 14:38:47 +0200
commit90654cce7d17ea5485efd5489673bb34f7578d45 (patch)
treec0406bb361c5fddae5fe04b3c201bb137ebd415f /doc/languages-frameworks/coq.section.md
parentc93884185aae0b1ccbab6766482c5629b1b9cbd2 (diff)
downloadnixpkgs-90654cce7d17ea5485efd5489673bb34f7578d45.tar
nixpkgs-90654cce7d17ea5485efd5489673bb34f7578d45.tar.gz
nixpkgs-90654cce7d17ea5485efd5489673bb34f7578d45.tar.bz2
nixpkgs-90654cce7d17ea5485efd5489673bb34f7578d45.tar.lz
nixpkgs-90654cce7d17ea5485efd5489673bb34f7578d45.tar.xz
nixpkgs-90654cce7d17ea5485efd5489673bb34f7578d45.tar.zst
nixpkgs-90654cce7d17ea5485efd5489673bb34f7578d45.zip
coqPackages.mkCoqDerivation: fix useDune2
- Reuse build phase from the `buildDunePackage` function.
- Only install the package that was just built (useful for monorepo support).
- Introduces `opam-name` to override the default package name to build with Dune.
Diffstat (limited to 'doc/languages-frameworks/coq.section.md')
-rw-r--r--doc/languages-frameworks/coq.section.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/languages-frameworks/coq.section.md b/doc/languages-frameworks/coq.section.md
index 0674c5a4702..39b60d83ac7 100644
--- a/doc/languages-frameworks/coq.section.md
+++ b/doc/languages-frameworks/coq.section.md
@@ -33,6 +33,7 @@ The recommended way of defining a derivation for a Coq library, is to use the `c
 * `mlPlugin` (optional, defaults to `false`). Some extensions (plugins) might require OCaml and sometimes other OCaml packages. Standard dependencies can be added by setting the current option to `true`. For a finer grain control, the `coq.ocamlPackages` attribute can be used in `extraBuildInputs` to depend on the same package set Coq was built against.
 * `useDune2ifVersion` (optional, default to `(x: false)` uses Dune2 to build the package if the provided predicate evaluates to true on the version, e.g. `useDune2if = versions.isGe "1.1"`  will use dune if the version of the package is greater or equal to `"1.1"`,
 * `useDune2` (optional, defaults to `false`) uses Dune2 to build the package if set to true, the presence of this attribute overrides the behavior of the previous one.
+* `opam-name` (optional, defaults to `coq-` followed by the value of `pname`), name of the Dune package to build.
 * `enableParallelBuilding` (optional, defaults to `true`), since it is activated by default, we provide a way to disable it.
 * `extraInstallFlags` (optional), allows to extend `installFlags` which initializes the variable `COQMF_COQLIB` so as to install in the proper subdirectory. Indeed Coq libraries should be installed in `$(out)/lib/coq/${coq.coq-version}/user-contrib/`. Such directories are automatically added to the `$COQPATH` environment variable by the hook defined in the Coq derivation.
 * `setCOQBIN` (optional, defaults to `true`), by default, the environment variable `$COQBIN` is set to the current Coq's binary, but one can disable this behavior by setting it to `false`,