aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL.md2
-rw-r--r--configure.ml24
-rw-r--r--dev/nixpkgs.nix4
3 files changed, 15 insertions, 15 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 51d59e1638..f672bb45d3 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -29,7 +29,7 @@ To compile Coq yourself, you need:
- for CoqIDE, the
[lablgtk3-sourceview3](https://github.com/garrigue/lablgtk) library
- (version >= 3.0.beta8), and the corresponding GTK 3.x libraries, as
+ (version >= 3.1.0), and the corresponding GTK 3.x libraries, as
of today (gtk+3 >= 3.18 and gtksourceview3 >= 3.18)
Primitive floating-point numbers require IEEE-754 compliance
diff --git a/configure.ml b/configure.ml
index 43c55af495..7fd1acb53e 100644
--- a/configure.ml
+++ b/configure.ml
@@ -692,10 +692,16 @@ let operating_system =
let check_for_zarith () =
let zarith,_ = tryrun camlexec.find ["query";"zarith"] in
+ let zarith_version, _ = run camlexec.find ["query"; "zarith"; "-format"; "%v"] in
match zarith with
| "" ->
die "Zarith library not installed, required"
- | _ -> cprintf "You have the Zarith library installed. Good!"
+ | _ ->
+ let zarith_version_int = List.map int_of_string (numeric_prefix_list zarith_version) in
+ if zarith_version_int >= [1;10;0] then
+ cprintf "You have the Zarith library %s installed. Good!" zarith_version
+ else
+ die ("Zarith version 1.10 is required, you have " ^ zarith_version)
let numlib = check_for_zarith ()
@@ -710,20 +716,14 @@ let get_lablgtkdir () =
let check_lablgtk_version () =
let v, _ = tryrun camlexec.find ["query"; "-format"; "%v"; "lablgtk3"] in
- (true, v)
-
-(* ejgallego: we wait to do version checks until an official release is out *)
-(* try
- let vi = numeric_prefix_list v in
- (* Temporary hack *)
- if vi = ["3";"0";"beta3"] then (false, v) else
- let vi = List.map s2i vi in
- if vi < [3; 0; 0] then
+ try
+ let vl = numeric_prefix_list v in
+ let vn = List.map int_of_string vl in
+ if vn < [3; 1; 0] then
(false, v)
else
(true, v)
with _ -> (false, v)
-*)
let pr_ide = function No -> "no" | Byte -> "only bytecode" | Opt -> "native"
@@ -751,7 +751,7 @@ let check_coqide () =
else
let (ok, version) = check_lablgtk_version () in
let found = sprintf "LablGtk3 and LablGtkSourceView3 found (%s)" version in
- if not ok then set_ide No (found^", but too old (required >= 3.0, found " ^ version ^ ")");
+ if not ok then set_ide No (found^", but too old (required >= 3.1.0, found " ^ version ^ ")");
(* We're now sure to produce at least one kind of coqide *)
lablgtkdir := shorten_camllib dir;
if !prefs.coqide = Some Byte then set_ide Byte (found^", bytecode requested");
diff --git a/dev/nixpkgs.nix b/dev/nixpkgs.nix
index e798645ed0..a582a70e0a 100644
--- a/dev/nixpkgs.nix
+++ b/dev/nixpkgs.nix
@@ -1,4 +1,4 @@
import (fetchTarball {
- url = "https://github.com/NixOS/nixpkgs/archive/3c0e3697520cbe7d9eb3a64bfd87de840bf4aa77.tar.gz";
- sha256 = "1vx7kyaq0i287dragjgfdj94ggwr3ky2b7bq32l8rkd2k3vc3gl5";
+ url = "https://github.com/NixOS/nixpkgs/archive/0bbeca2ff952e6a171534793ddd0fa97c8f9546a.tar.gz";
+ sha256 = "0h1y4ffvyvkqs6k2pak02pby25va7c6c1y4p8xkwlzqwswxqxvfl";
})