aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo Zimmermann2018-11-26 18:43:53 +0100
committerThéo Zimmermann2018-11-26 18:43:53 +0100
commit5b6fba1920c998c732b10beba314638f47e2edde (patch)
tree9ffc2057f06aeb7c38070391f4fe8b1af0cc0bff
parent59e4e643caab72a6ee8a3fefedf5a6ce9de62bee (diff)
parent9335cc09090bfba1f81f81c35e0acb324bf6cba5 (diff)
Merge PR #9057: [nix-ci] Add a README in dev/ci/nix
-rw-r--r--dev/ci/nix/README.md19
-rw-r--r--dev/ci/nix/unicoq.nix7
2 files changed, 21 insertions, 5 deletions
diff --git a/dev/ci/nix/README.md b/dev/ci/nix/README.md
new file mode 100644
index 0000000000..1685b084e9
--- /dev/null
+++ b/dev/ci/nix/README.md
@@ -0,0 +1,19 @@
+# Working on third-party developments with *this* version of Coq
+
+Aim: getting an environment suitable for working on a third-party development
+using the current version of Coq (i.e., built from the current state of this
+repository).
+
+Dive into such an environment, for the project `example` by running, from the
+root of this repository:
+
+ ./dev/ci/nix/shell example
+
+This will build Coq and the other dependencies of the `example` project, then
+open a shell with all these dependencies available (e.g., `coqtop` is in path).
+
+Additionally, three environment variables are set, to abstract over the
+build-system of that project: `configure`, `make`, and `clean`. Therefore, after
+changing the working directory to the root of the sources of that project, the
+contents of these variables can be evaluated to respectively set-up, build, and
+clean the project.
diff --git a/dev/ci/nix/unicoq.nix b/dev/ci/nix/unicoq.nix
index f10afd5680..093c262cde 100644
--- a/dev/ci/nix/unicoq.nix
+++ b/dev/ci/nix/unicoq.nix
@@ -1,11 +1,8 @@
-{ stdenv, fetchzip, coq }:
+{ stdenv, coq }:
stdenv.mkDerivation {
name = "coq${coq.coq-version}-unicoq-0.0-git";
- src = fetchzip {
- url = "https://github.com/vbgl/unicoq/archive/8b33e37700e92bfd404bf8bf9fe03f1be8928d97.tar.gz";
- sha256 = "0s4z0wjxlp56ccgzxgk04z7skw90rdnz39v730ffkgrjl38rr9il";
- };
+ src = fetchTarball https://github.com/unicoq/unicoq/archive/master.tar.gz;
buildInputs = [ coq ] ++ (with coq.ocamlPackages; [ ocaml findlib camlp5 num ]);