coqPackages.fiat: new expression

This commit is contained in:
John Wiegley 2015-01-09 14:07:02 -06:00
parent d2566a190e
commit 2aec1b0f31
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{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 ];
enableParallelBuilding = true;
unpackPhase = ''
mkdir fiat
cd fiat
tar xvzf ${src}
'';
buildPhase = "make sources";
installPhase = ''
COQLIB=$out/lib/coq/${coq.coq-version}/
mkdir -p $COQLIB/user-contrib/Fiat
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";
maintainers = with maintainers; [ jwiegley ];
platforms = coq.meta.platforms;
};
}

View file

@ -12415,6 +12415,8 @@ let
domains = callPackage ../development/coq-modules/domains {};
fiat = callPackage ../development/coq-modules/fiat {};
flocq = callPackage ../development/coq-modules/flocq {};
heq = callPackage ../development/coq-modules/heq {};