3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/coq-modules/interval/default.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, which, coq, coquelicot, flocq, mathcomp
, bignums ? null }:
2019-02-08 09:40:55 +00:00
let params =
if stdenv.lib.versionAtLeast coq.coq-version "8.7" then {
version = "3.4.0";
uid = "37524";
sha256 = "023j9sd64brqvjdidqkn5m8d7a93zd9r86ggh573z9nkjm2m7vvg";
} else {
version = "3.3.0";
uid = "37077";
sha256 = "08fdcf3hbwqphglvwprvqzgkg0qbimpyhnqsgv3gac4y1ap0f903";
}
; in
stdenv.mkDerivation {
2019-02-08 09:40:55 +00:00
name = "coq${coq.coq-version}-interval-${params.version}";
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;
};
nativeBuildInputs = [ which ];
buildInputs = [ coq ];
propagatedBuildInputs = [ bignums coquelicot flocq mathcomp ];
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-02-08 09:40:55 +00:00
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" ];
2018-04-24 15:21:21 +01:00
};
2018-03-21 14:00:47 +00:00
}