2014-10-21 06:23:36 +01:00
|
|
|
{stdenv, bash, which, autoconf, automake, fetchurl, coq}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2017-01-14 14:52:03 +00:00
|
|
|
name = "coq${coq.coq-version}-flocq-${version}";
|
|
|
|
version = "2.5.2";
|
2014-10-21 06:23:36 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-01-14 14:52:03 +00:00
|
|
|
url = https://gforge.inria.fr/frs/download.php/file/36199/flocq-2.5.2.tar.gz;
|
|
|
|
sha256 = "0h5mlasirfzc0wwn2isg4kahk384n73145akkpinrxq5jsn5d22h";
|
2014-10-21 06:23:36 +01: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 16:05:14 +01:00
|
|
|
description = "A floating-point formalization for the Coq system";
|
2014-12-07 12:14:08 +00:00
|
|
|
license = licenses.lgpl3;
|
2014-10-21 06:23:36 +01:00
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|