@@ -1,31 +1,34 @@
1−# - coqide compilation can be disabled by setting lablgtk to null;
1+# - coqide compilation can be disabled by setting buildIde to false;
22# - The csdp program used for the Micromega tactic is statically referenced.
33# However, coq can build without csdp by setting it to null.
44# In this case some Micromega tactics will search the user's path for the csdp program and will fail if it is not found.
55
6−{stdenv, fetchgit, writeText, pkgconfig, ocaml, findlib, camlp5, ncurses, lablgtk ? null, csdp ? null}:
6+{stdenv, fetchgit, writeText, pkgconfig, ocamlPackages_4_02, ncurses, buildIde ? true, csdp ? null}:
77
88let
9− version = "8.6pre-0c999f02";
9+ version = "2017-02-03";
1010 coq-version = "8.6";
11− buildIde = lablgtk != null;
12− ideFlags = if buildIde then "-lablgtkdir ${lablgtk}/lib/ocaml/*/site-lib/lablgtk2 -coqide opt" else "";
11+ ideFlags = if buildIde then "-lablgtkdir ${ocamlPackages_4_02.lablgtk}/lib/ocaml/*/site-lib/lablgtk2 -coqide opt" else "";
1312 csdpPatch = if csdp != null then ''
1413 substituteInPlace plugins/micromega/sos.ml --replace "; csdp" "; ${csdp}/bin/csdp"
1514 substituteInPlace plugins/micromega/coq_micromega.ml --replace "System.is_in_system_path \"csdp\"" "true"
1615 '' else "";
16+ ocaml = ocamlPackages_4_02.ocaml;
17+ findlib = ocamlPackages_4_02.findlib;
18+ lablgtk = ocamlPackages_4_02.lablgtk;
19+ camlp5 = ocamlPackages_4_02.camlp5_transitional;
1720in
1821
1922stdenv.mkDerivation {
20− name = "coq-${version}";
23+ name = "coq-unstable-${version}";
2124
2225 inherit coq-version;
23− inherit ocaml camlp5;
26+ inherit ocaml camlp5 findlib;
2427
2528 src = fetchgit {
2629 url = git://scm.gforge.inria.fr/coq/coq.git;
27− rev = "ad768e435a736ca51ac79a575967b388b34918c7";
28− sha256 = "05s7sk1l3mvdjag3idnhkpj707y4bv56da7kpffw862f2qgfr77j";
30+ rev = "078598d029792a3d9a54fae9b9ac189b75bc3b06";
31+ sha256 = "0sflrpp6x0ada0bjh67q1x65g88d179n3cawpwkp1pm4kw76g8x7";
2932 };
3033
3134 buildInputs = [ pkgconfig ocaml findlib camlp5 ncurses lablgtk ];