coqPackages.fiat: enable building the examples as a test
This commit is contained in:
parent
69f5738668
commit
753539800e
@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
propagatedBuildInputs = [ coq ];
|
propagatedBuildInputs = [ coq ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
mkdir fiat
|
mkdir fiat
|
||||||
@ -21,7 +22,8 @@ stdenv.mkDerivation rec {
|
|||||||
tar xvzf ${src}
|
tar xvzf ${src}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = "make sources";
|
buildPhase = "make -j$NIX_BUILD_CORES sources";
|
||||||
|
checkPhase = "make -j$NIX_BUILD_CORES examples";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
COQLIB=$out/lib/coq/${coq.coq-version}/
|
COQLIB=$out/lib/coq/${coq.coq-version}/
|
||||||
@ -29,8 +31,6 @@ stdenv.mkDerivation rec {
|
|||||||
cp -pR src/* $COQLIB/user-contrib/Fiat
|
cp -pR src/* $COQLIB/user-contrib/Fiat
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://plv.csail.mit.edu/fiat/;
|
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";
|
description = "Fiat is a library for the Coq proof assistant for synthesizing efficient correct-by-construction programs from declarative specifications";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user