From 753539800e2c5bc958d6307f8ea7f6d828bce232 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 9 Jan 2015 15:19:58 -0600 Subject: [PATCH] coqPackages.fiat: enable building the examples as a test --- pkgs/development/coq-modules/fiat/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/coq-modules/fiat/default.nix b/pkgs/development/coq-modules/fiat/default.nix index 5b95800a4acc..9f020de15345 100644 --- a/pkgs/development/coq-modules/fiat/default.nix +++ b/pkgs/development/coq-modules/fiat/default.nix @@ -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";