1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

compatibility fix of ocaml-extlib for ocaml 4.00.0.

This commit is contained in:
Arie Middelkoop 2012-07-30 20:12:06 +02:00
parent 2d09dbf8fc
commit 26b4e2a286
2 changed files with 13 additions and 0 deletions

View file

@ -8,6 +8,7 @@ stdenv.mkDerivation {
sha256 = "ca6d69adeba4242ce41c02a23746ba1e464c0bbec66e2d16b02c3c6e85dc10aa";
};
patches = [ ./hashtable-ocaml4-compat.patch ];
buildInputs = [ocaml findlib];
createFindlibDestdir = true;

View file

@ -0,0 +1,12 @@
Revision 396 from the official extlib repository.
--- extlib/extHashtbl.ml (revision 395)
+++ extlib/extHashtbl.ml (working copy)
@@ -32,6 +32,7 @@
}
include Hashtbl
+ let create n = Hashtbl.create (* no seed *) n
external h_conv : ('a, 'b) t -> ('a, 'b) h_t = "%identity"
external h_make : ('a, 'b) h_t -> ('a, 'b) t = "%identity"