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 =
|
|
|
|
if stdenv.lib.versionAtLeast coq.coq-version "8.7" then {
|
2019-08-05 20:30:44 +01:00
|
|
|
version = "3.4.1";
|
|
|
|
uid = "38104";
|
|
|
|
sha256 = "1zklv2w34k866fpwmw8q692mid5n6s75d2mmhhigrzpx5l3d4z6y";
|
2019-02-08 09:40:55 +00:00
|
|
|
} else {
|
|
|
|
version = "3.3.0";
|
|
|
|
uid = "37077";
|
|
|
|
sha256 = "08fdcf3hbwqphglvwprvqzgkg0qbimpyhnqsgv3gac4y1ap0f903";
|
|
|
|
}
|
|
|
|
; in
|
|
|
|
|
2014-12-08 06:33:37 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-02-08 09:40:55 +00:00
|
|
|
name = "coq${coq.coq-version}-interval-${params.version}";
|
2014-12-08 06:33:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-02-08 09:40:55 +00:00
|
|
|
url = "https://gforge.inria.fr/frs/download.php/file/${params.uid}/interval-${params.version}.tar.gz";
|
|
|
|
inherit (params) 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; {
|
|
|
|
homepage = http://coq-interval.gforge.inria.fr/;
|
|
|
|
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 = {
|
2019-08-05 20:30:44 +01:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" "8.9" "8.10" ];
|
2018-04-24 15:21:21 +01:00
|
|
|
};
|
|
|
|
|
2018-03-21 14:00:47 +00:00
|
|
|
|
2014-12-08 06:33:37 +00:00
|
|
|
}
|