summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/extlib
diff options
context:
space:
mode:
authorArie Middelkoop <amiddelk@gmail.com>2012-07-30 20:12:06 +0200
committerArie Middelkoop <amiddelk@gmail.com>2012-07-31 14:10:11 +0200
commit26b4e2a286efab1bca53a84602a25619c6dffc5f (patch)
tree603abc2bb91f9a3fedd5a1996d54cd4b87cde925 /pkgs/development/ocaml-modules/extlib
parent2d09dbf8fc456a6fea0fc01c861250b59db05698 (diff)
downloadnixpkgs-26b4e2a286efab1bca53a84602a25619c6dffc5f.tar
nixpkgs-26b4e2a286efab1bca53a84602a25619c6dffc5f.tar.gz
nixpkgs-26b4e2a286efab1bca53a84602a25619c6dffc5f.tar.bz2
nixpkgs-26b4e2a286efab1bca53a84602a25619c6dffc5f.tar.lz
nixpkgs-26b4e2a286efab1bca53a84602a25619c6dffc5f.tar.xz
nixpkgs-26b4e2a286efab1bca53a84602a25619c6dffc5f.tar.zst
nixpkgs-26b4e2a286efab1bca53a84602a25619c6dffc5f.zip
compatibility fix of ocaml-extlib for ocaml 4.00.0.
Diffstat (limited to 'pkgs/development/ocaml-modules/extlib')
-rw-r--r--pkgs/development/ocaml-modules/extlib/default.nix1
-rw-r--r--pkgs/development/ocaml-modules/extlib/hashtable-ocaml4-compat.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/extlib/default.nix b/pkgs/development/ocaml-modules/extlib/default.nix
index 55e1c841830..a520f8196d8 100644
--- a/pkgs/development/ocaml-modules/extlib/default.nix
+++ b/pkgs/development/ocaml-modules/extlib/default.nix
@@ -8,6 +8,7 @@ stdenv.mkDerivation {
     sha256 = "ca6d69adeba4242ce41c02a23746ba1e464c0bbec66e2d16b02c3c6e85dc10aa";
   };
 
+  patches = [ ./hashtable-ocaml4-compat.patch ];
   buildInputs = [ocaml findlib];
 
   createFindlibDestdir = true;
diff --git a/pkgs/development/ocaml-modules/extlib/hashtable-ocaml4-compat.patch b/pkgs/development/ocaml-modules/extlib/hashtable-ocaml4-compat.patch
new file mode 100644
index 00000000000..c587f2b6cd3
--- /dev/null
+++ b/pkgs/development/ocaml-modules/extlib/hashtable-ocaml4-compat.patch
@@ -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"
\ No newline at end of file