2017-11-13 07:29:27 +00:00
|
|
|
{ stdenv, fetchurl, which, coq, coquelicot, flocq, mathcomp
|
|
|
|
, bignums ? null }:
|
2014-12-08 06:33:37 +00:00
|
|
|
|
2019-02-08 09:40:55 +00:00
|
|
|
let params =
|
2020-08-10 06:54:26 +01:00
|
|
|
let
|
|
|
|
v3_3 = {
|
2019-02-08 09:40:55 +00:00
|
|
|
version = "3.3.0";
|
|
|
|
uid = "37077";
|
|
|
|
sha256 = "08fdcf3hbwqphglvwprvqzgkg0qbimpyhnqsgv3gac4y1ap0f903";
|
2020-08-10 06:54:26 +01:00
|
|
|
};
|
|
|
|
v3_4 = {
|
|
|
|
version = "3.4.2";
|
|
|
|
uid = "38288";
|
|
|
|
sha256 = "00bgzbji0gkazwxhs4q8gz4ccqsa1y1r0m0ravr18ps2h8a8qva5";
|
|
|
|
};
|
|
|
|
v4_0 = {
|
|
|
|
version = "4.0.0";
|
|
|
|
uid = "38339";
|
|
|
|
sha256 = "19sbrv7jnzyxji7irfslhr9ralc0q3gx20nymig5vqbn3vssmgpz";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
"8.5" = v3_3;
|
|
|
|
"8.6" = v3_3;
|
|
|
|
"8.7" = v3_4;
|
|
|
|
"8.8" = v4_0;
|
|
|
|
"8.9" = v4_0;
|
|
|
|
"8.10" = v4_0;
|
|
|
|
"8.11" = v4_0;
|
|
|
|
"8.12" = v4_0;
|
|
|
|
};
|
|
|
|
param = params."${coq.coq-version}";
|
|
|
|
in
|
2019-02-08 09:40:55 +00:00
|
|
|
|
2014-12-08 06:33:37 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-08-10 06:54:26 +01:00
|
|
|
name = "coq${coq.coq-version}-interval-${param.version}";
|
2014-12-08 06:33:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-08-10 06:54:26 +01:00
|
|
|
url = "https://gforge.inria.fr/frs/download.php/file/${param.uid}/interval-${param.version}.tar.gz";
|
|
|
|
inherit (param) sha256;
|
2014-12-08 06:33:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ which ];
|
2017-11-13 07:29:27 +00:00
|
|
|
buildInputs = [ coq ];
|
2019-08-05 20:30:44 +01:00
|
|
|
propagatedBuildInputs = [ bignums coquelicot flocq ];
|
2014-12-08 06:33:37 +00:00
|
|
|
|
|
|
|
configurePhase = "./configure --libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Interval";
|
|
|
|
buildPhase = "./remake";
|
|
|
|
installPhase = "./remake install";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://coq-interval.gforge.inria.fr/";
|
2014-12-08 06:33:37 +00:00
|
|
|
description = "Tactics for simplifying the proofs of inequalities on expressions of real numbers for the Coq proof assistant";
|
|
|
|
license = licenses.cecill-c;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
2018-03-21 14:00:47 +00:00
|
|
|
|
2018-04-24 15:21:21 +01:00
|
|
|
passthru = {
|
2020-08-10 06:54:26 +01:00
|
|
|
compatibleCoqVersions = stdenv.lib.flip builtins.hasAttr params;
|
2018-04-24 15:21:21 +01:00
|
|
|
};
|
|
|
|
|
2014-12-08 06:33:37 +00:00
|
|
|
}
|