2015-01-09 20:07:02 +00:00
|
|
|
{stdenv, fetchurl, coq}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "coq-fiat-${coq.coq-version}-${version}";
|
|
|
|
version = "20141031";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://plv.csail.mit.edu/fiat/releases/fiat-${version}.tar.gz";
|
|
|
|
sha256 = "0c5jrcgbpdj0gfzg2q4naqw7frf0xxs1f451fnic6airvpaj0d55";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq.ocaml coq.camlp5 ];
|
|
|
|
propagatedBuildInputs = [ coq ];
|
|
|
|
|
2015-06-10 15:13:34 +01:00
|
|
|
enableParallelBuilding = false;
|
2015-01-09 21:19:58 +00:00
|
|
|
doCheck = true;
|
2015-01-09 20:07:02 +00:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir fiat
|
|
|
|
cd fiat
|
|
|
|
tar xvzf ${src}
|
|
|
|
'';
|
|
|
|
|
2015-01-09 21:19:58 +00:00
|
|
|
buildPhase = "make -j$NIX_BUILD_CORES sources";
|
|
|
|
checkPhase = "make -j$NIX_BUILD_CORES examples";
|
2015-01-09 20:07:02 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
COQLIB=$out/lib/coq/${coq.coq-version}/
|
|
|
|
mkdir -p $COQLIB/user-contrib/Fiat
|
2015-01-09 20:21:08 +00:00
|
|
|
cp -pR src/* $COQLIB/user-contrib/Fiat
|
2015-01-09 20:07:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://plv.csail.mit.edu/fiat/;
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A library for the Coq proof assistant for synthesizing efficient correct-by-construction programs from declarative specifications";
|
2015-01-09 20:07:02 +00:00
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|