@@ -0,0 +1,35 @@
1+{stdenv, fetchgit, coq, python27}:
2+
3+stdenv.mkDerivation rec {
4+
5+ name = "coq-fiat-${coq.coq-version}-${version}";
6+ version = "20161024";
7+
8+ src = fetchgit {
9+ url = "https://github.com/mit-plv/fiat.git";
10+ rev = "7feb6c64be9ebcc05924ec58fe1463e73ec8206a";
11+ sha256 = "0griqc675yylf9rvadlfsabz41qy5f5idya30p5rv6ysiakxya64";
12+ };
13+
14+ buildInputs = [ coq.ocaml coq.camlp5 python27 ];
15+ propagatedBuildInputs = [ coq ];
16+
17+ doCheck = false;
18+
19+ enableParallelBuilding = false;
20+ buildPhase = "make -j$NIX_BUILD_CORES";
21+
22+ installPhase = ''
23+ COQLIB=$out/lib/coq/${coq.coq-version}/
24+ mkdir -p $COQLIB/user-contrib/Fiat
25+ cp -pR src/* $COQLIB/user-contrib/Fiat
26+ '';
27+
28+ meta = with stdenv.lib; {
29+ homepage = http://plv.csail.mit.edu/fiat/;
30+ description = "A library for the Coq proof assistant for synthesizing efficient correct-by-construction programs from declarative specifications";
31+ maintainers = with maintainers; [ jwiegley ];
32+ platforms = coq.meta.platforms;
33+ };
34+
35+}