aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorVincent Laporte2020-06-15 10:29:29 +0200
committerVincent Laporte2020-06-15 10:29:29 +0200
commit61b63e09e4b5ce428bc8e8c038efe93560f328ff (patch)
treec81cc19a3333627569956e75528c59358363a870 /dev
parent13e8d04b2f080fbc7ca169bc39e53c8dd091d279 (diff)
parent89d65078a1a35558a9e5f934ef6074d8671db811 (diff)
Merge PR #12494: [dev/ci/nix] Support for building the Gappa plugin.
Reviewed-by: vbgl
Diffstat (limited to 'dev')
-rw-r--r--dev/ci/nix/default.nix14
-rw-r--r--dev/ci/nix/gappa.nix9
2 files changed, 22 insertions, 1 deletions
diff --git a/dev/ci/nix/default.nix b/dev/ci/nix/default.nix
index b3ced999f6..05624ff4a1 100644
--- a/dev/ci/nix/default.nix
+++ b/dev/ci/nix/default.nix
@@ -74,9 +74,20 @@ let Verdi = (coqPackages.Verdi.override { inherit Cheerios ssreflect; })
src = fetchTarball "https://github.com/uwplse/verdi/tarball/master";
}); in
+let flocq = coqPackages.flocq.overrideAttrs (o: {
+ src = fetchTarball "https://gitlab.inria.fr/flocq/flocq/-/archive/master/flocq-master.tar.gz";
+ configurePhase = ''
+ autoreconf
+ ${bash}/bin/bash configure --libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Flocq
+ '';
+ buildPhase = ''
+ ./remake
+ '';
+ }); in
+
let callPackage = newScope { inherit coq
bignums coq-ext-lib coqprime corn iris math-classes
- mathcomp simple-io ssreflect stdpp unicoq Verdi;
+ mathcomp simple-io ssreflect stdpp unicoq Verdi flocq;
}; in
# Environments for building CI libraries with this Coq
@@ -93,6 +104,7 @@ let projects = {
fiat_crypto = callPackage ./fiat_crypto.nix {};
flocq = callPackage ./flocq.nix {};
formal-topology = callPackage ./formal-topology.nix {};
+ gappa = callPackage ./gappa.nix {};
GeoCoq = callPackage ./GeoCoq.nix {};
HoTT = callPackage ./HoTT.nix {};
iris = callPackage ./iris.nix {};
diff --git a/dev/ci/nix/gappa.nix b/dev/ci/nix/gappa.nix
new file mode 100644
index 0000000000..8560cc072b
--- /dev/null
+++ b/dev/ci/nix/gappa.nix
@@ -0,0 +1,9 @@
+{ autoconf, automake, ocaml, flocq }:
+
+{
+ buildInputs = [ autoconf automake ocaml ];
+ coqBuildInputs = [ flocq ];
+ configure = "autoreconf && ./configure";
+ make = "./remake";
+ clean = "./remake clean";
+}