2014-10-21 07:23:36 +02:00
|
|
|
{stdenv, bash, which, autoconf, automake, fetchurl, coq}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2017-01-14 15:52:03 +01:00
|
|
|
name = "coq${coq.coq-version}-flocq-${version}";
|
2017-10-19 01:21:37 +02:00
|
|
|
version = "2.6.0";
|
2014-10-21 07:23:36 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-19 01:21:37 +02:00
|
|
|
url = https://gforge.inria.fr/frs/download.php/file/37054/flocq-2.6.0.tar.gz;
|
|
|
|
sha256 = "13fv150dcwnjrk00d7zj2c5x9jwmxgrq0ay440gkr730l8mvk3l3";
|
2014-10-21 07:23:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq.ocaml coq.camlp5 bash which autoconf automake ];
|
|
|
|
propagatedBuildInputs = [ coq ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
${bash}/bin/bash autogen.sh
|
|
|
|
${bash}/bin/bash configure --libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Flocq
|
|
|
|
./remake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
./remake install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://flocq.gforge.inria.fr/;
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "A floating-point formalization for the Coq system";
|
2014-12-07 13:14:08 +01:00
|
|
|
license = licenses.lgpl3;
|
2014-10-21 07:23:36 +02:00
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|