2016-01-05 21:36:30 +00:00
|
|
|
{ stdenv, fetchurl, which, coq, ssreflect }:
|
|
|
|
|
2019-07-26 16:27:30 +00:00
|
|
|
let param =
|
|
|
|
if stdenv.lib.versionAtLeast coq.coq-version "8.8"
|
|
|
|
then {
|
2020-06-14 07:51:33 +00:00
|
|
|
version = "3.1.0";
|
|
|
|
uid = "38287";
|
|
|
|
sha256 = "07436wkvnq9jyf7wyhp77bpl157s3qhba1ay5xrkxdi26qdf3h14";
|
2019-07-26 16:27:30 +00:00
|
|
|
} else {
|
|
|
|
version = "3.0.2";
|
|
|
|
uid = "37523";
|
|
|
|
sha256 = "1biia7nfqf7vaqq5gmykl4rwjyvrcwss6r2jdf0in5pvp2rnrj2w";
|
|
|
|
}
|
|
|
|
; in
|
|
|
|
|
2017-12-02 08:44:29 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-07-26 16:27:30 +00:00
|
|
|
name = "coq${coq.coq-version}-coquelicot-${param.version}";
|
2017-12-02 08:44:29 +00:00
|
|
|
src = fetchurl {
|
2019-07-26 16:27:30 +00:00
|
|
|
url = "https://gforge.inria.fr/frs/download.php/file/${param.uid}/coquelicot-${param.version}.tar.gz";
|
|
|
|
inherit (param) sha256;
|
2017-01-28 06:52:23 +00:00
|
|
|
};
|
2016-01-05 21:36:30 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
buildInputs = [ coq ];
|
|
|
|
propagatedBuildInputs = [ ssreflect ];
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Coquelicot" ];
|
2016-01-05 21:36:30 +00:00
|
|
|
buildPhase = "./remake";
|
|
|
|
installPhase = "./remake install";
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://coquelicot.saclay.inria.fr/";
|
2016-01-05 21:36:30 +00:00
|
|
|
description = "A Coq library for Reals";
|
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (coq.meta) platforms;
|
|
|
|
};
|
2018-03-21 14:00:47 +00:00
|
|
|
|
2018-04-24 14:21:21 +00:00
|
|
|
passthru = {
|
2020-06-14 07:51:33 +00:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" "8.12" ];
|
2018-04-24 14:21:21 +00:00
|
|
|
};
|
2018-03-21 14:00:47 +00:00
|
|
|
|
2016-01-05 21:36:30 +00:00
|
|
|
}
|