2018-10-10 17:00:23 +00:00
|
|
|
{stdenv, fetchgit, coq, python27}:
|
2016-10-31 23:21:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2017-05-09 03:31:15 +00:00
|
|
|
name = "coq-fiat-${coq.coq-version}-unstable-${version}";
|
2018-10-10 17:00:23 +00:00
|
|
|
version = "2016-10-24";
|
2016-10-31 23:21:41 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/mit-plv/fiat.git";
|
2018-10-10 17:00:23 +00:00
|
|
|
rev = "7feb6c64be9ebcc05924ec58fe1463e73ec8206a";
|
|
|
|
sha256 = "0griqc675yylf9rvadlfsabz41qy5f5idya30p5rv6ysiakxya64";
|
2016-10-31 23:21:41 +00:00
|
|
|
};
|
|
|
|
|
2018-11-06 12:10:09 +00:00
|
|
|
buildInputs = [ coq python27 ] ++ (with coq.ocamlPackages; [ ocaml camlp5 ]);
|
|
|
|
|
|
|
|
prePatch = "patchShebangs etc/coq-scripts";
|
2016-10-31 23:21:41 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-10-10 17:00:23 +00:00
|
|
|
enableParallelBuilding = false;
|
2016-10-31 23:21:41 +00:00
|
|
|
buildPhase = "make -j$NIX_BUILD_CORES";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
COQLIB=$out/lib/coq/${coq.coq-version}/
|
|
|
|
mkdir -p $COQLIB/user-contrib/Fiat
|
|
|
|
cp -pR src/* $COQLIB/user-contrib/Fiat
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://plv.csail.mit.edu/fiat/";
|
2016-10-31 23:21:41 +00:00
|
|
|
description = "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;
|
|
|
|
};
|
|
|
|
|
2017-12-15 19:52:16 +00:00
|
|
|
passthru = {
|
2018-10-10 17:00:23 +00:00
|
|
|
compatibleCoqVersions = v: v == "8.5";
|
2017-12-15 19:52:16 +00:00
|
|
|
};
|
2016-10-31 23:21:41 +00:00
|
|
|
}
|