coqPackages.fiat: enable building the examples as a test

This commit is contained in:
John Wiegley 2015-01-09 15:19:58 -06:00
parent 69f5738668
commit 753539800e

View File

@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ coq ];
enableParallelBuilding = true;
doCheck = true;
unpackPhase = ''
mkdir fiat
@ -21,7 +22,8 @@ stdenv.mkDerivation rec {
tar xvzf ${src}
'';
buildPhase = "make sources";
buildPhase = "make -j$NIX_BUILD_CORES sources";
checkPhase = "make -j$NIX_BUILD_CORES examples";
installPhase = ''
COQLIB=$out/lib/coq/${coq.coq-version}/
@ -29,8 +31,6 @@ stdenv.mkDerivation rec {
cp -pR src/* $COQLIB/user-contrib/Fiat
'';
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
meta = with stdenv.lib; {
homepage = http://plv.csail.mit.edu/fiat/;
description = "Fiat is a library for the Coq proof assistant for synthesizing efficient correct-by-construction programs from declarative specifications";