@@ -0,0 +1,26 @@
1+{ stdenv, fetchurl, which, coq, flocq, mathcomp }:
2+
3+stdenv.mkDerivation {
4+ name = "coq-interval-${coq.coq-version}-2.0.0";
5+
6+ src = fetchurl {
7+ url = https://gforge.inria.fr/frs/download.php/file/34294/interval-2.0.0.tar.gz;
8+ sha256 = "0wx0z07nhx88hwl20icgb5w4mx6s5pn7mhzyx5jn8f7yl1m46ad2";
9+ };
10+
11+ nativeBuildInputs = [ which ];
12+ buildInputs = [ coq ];
13+ propagatedBuildInputs = [ flocq mathcomp ];
14+
15+ configurePhase = "./configure --libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Interval";
16+ buildPhase = "./remake";
17+ installPhase = "./remake install";
18+
19+ meta = with stdenv.lib; {
20+ homepage = http://coq-interval.gforge.inria.fr/;
21+ description = "Tactics for simplifying the proofs of inequalities on expressions of real numbers for the Coq proof assistant";
22+ license = licenses.cecill-c;
23+ maintainers = with maintainers; [ vbgl ];
24+ platforms = coq.meta.platforms;
25+ };
26+}