mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
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 ];
|
||||
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user