2019-06-13 16:25:38 +01:00
|
|
|
{ stdenv, fetchurl, which, coq, flocq }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2020-08-23 07:13:45 +01:00
|
|
|
name = "coq${coq.coq-version}-gappalib-1.4.4";
|
2019-06-13 16:25:38 +01:00
|
|
|
src = fetchurl {
|
2020-08-23 07:13:45 +01:00
|
|
|
url = "https://gforge.inria.fr/frs/download.php/file/38338/gappalib-coq-1.4.4.tar.gz";
|
|
|
|
sha256 = "1ds9qp3ml07w5ali0rsczlwgdx4xcgasgbcnpi2lssgj1xpxgfpn";
|
2019-06-13 16:25:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
buildInputs = [ coq coq.ocamlPackages.ocaml ];
|
|
|
|
propagatedBuildInputs = [ flocq ];
|
|
|
|
|
|
|
|
configurePhase = "./configure --libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Gappa";
|
|
|
|
buildPhase = "./remake";
|
|
|
|
installPhase = "./remake install";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Coq support library for Gappa";
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://gappa.gforge.inria.fr/";
|
2019-06-13 16:25:38 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (coq.meta) platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-08-23 07:13:45 +01:00
|
|
|
compatibleCoqVersions = stdenv.lib.flip builtins.elem [ "8.8" "8.9" "8.10" "8.11" "8.12" ];
|
2019-06-13 16:25:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|