Debian Codegraph @

dev/ci/nix/README.md

raw symbols SCIP
1 # Working on third-party developments with *this* version of Rocq
2
3 Aim: getting an environment suitable for working on a third-party development
4 using the current version of Rocq (i.e., built from the current state of this
5 repository).
6
7 Dive into such an environment, for the project `example` by running, from the
8 root of this repository:
9
10 ./dev/ci/nix/shell example
11
12 This will build Rocq and the other dependencies of the `example` project, then
13 open a shell with all these dependencies available (e.g., `coqtop` is in path).
14
15 Additionally, three environment variables are set, to abstract over the
16 build-system of that project: `configure`, `make`, and `clean`. Therefore, after
17 changing the working directory to the root of the sources of that project, the
18 contents of these variables can be evaluated to respectively set-up, build, and
19 clean the project.
20
21 ## Variant: nocoq
22
23 The dependencies of the third-party developments are split into `buildInputs`
24 and `coqBuildInputs`. The second list gathers the Rocq libraries. In case you
25 only want the non-coq dependencies (because you want to use Rocq from your `PATH`),
26 set the environment variable `NOCOQ` to some non-empty value.