From 89d65078a1a35558a9e5f934ef6074d8671db811 Mon Sep 17 00:00:00 2001 From: Théo Zimmermann Date: Wed, 10 Jun 2020 18:28:35 +0200 Subject: [dev/ci/nix] Support for building the Gappa plugin. --- dev/ci/nix/default.nix | 14 +++++++++++++- dev/ci/nix/gappa.nix | 9 +++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 dev/ci/nix/gappa.nix (limited to 'dev/ci') 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"; +} -- cgit v1.2.3