2018-03-05 22:06:36 +01:00
|
|
|
{stdenv, fetchgit, coq, ocamlPackages, python27}:
|
2016-11-01 00:21:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2017-05-09 05:31:15 +02:00
|
|
|
name = "coq-fiat-${coq.coq-version}-unstable-${version}";
|
2018-03-05 22:06:36 +01:00
|
|
|
version = "2018-02-27";
|
2016-11-01 00:21:41 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/mit-plv/fiat.git";
|
2018-03-05 22:06:36 +01:00
|
|
|
rev = "253fc133397f73d6daed0b9518ca7ab5507a1cb0";
|
|
|
|
sha256 = "0b5z7nz0cr1s7vy04s996dj0pd7ljqx6g5a8syh4hy2z87ijkjzd";
|
2016-11-01 00:21:41 +01:00
|
|
|
};
|
|
|
|
|
2018-03-05 22:06:36 +01:00
|
|
|
buildInputs = [ ocamlPackages.ocaml ocamlPackages.camlp5_transitional
|
|
|
|
ocamlPackages.findlib python27 ];
|
2016-11-01 00:21:41 +01:00
|
|
|
propagatedBuildInputs = [ coq ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-03-05 22:06:36 +01:00
|
|
|
enableParallelBuilding = true;
|
2016-11-01 00:21:41 +01: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; {
|
|
|
|
homepage = http://plv.csail.mit.edu/fiat/;
|
|
|
|
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 20:52:16 +01:00
|
|
|
passthru = {
|
2018-03-05 22:06:36 +01:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" ];
|
2017-12-15 20:52:16 +01:00
|
|
|
};
|
2016-11-01 00:21:41 +01:00
|
|
|
}
|