@@ -1,26 +1,29 @@
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
99 version = "2017-01-22";
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 {
2023 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;