Merge branch 'fix-ocaml-facile' of git://github.com/maggesi/nixpkgs
Fix compilation of ocaml-facile with OCaml 4.xx
This commit is contained in:
commit
e0b8a00607
@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
dontAddPrefix = 1;
|
||||
|
||||
patchPhase = "sed -e 's@mkdir@mkdir -p@' -i Makefile";
|
||||
patches = [ ./ocaml_4.xx.patch ];
|
||||
|
||||
postPatch = "sed -e 's@mkdir@mkdir -p@' -i Makefile";
|
||||
|
||||
postConfigure = "make -C src .depend";
|
||||
|
||||
|
12
pkgs/development/libraries/facile/ocaml_4.xx.patch
Normal file
12
pkgs/development/libraries/facile/ocaml_4.xx.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -rupN facile-1.1/src/fcl_data.ml facile-1.1-patched//src/fcl_data.ml
|
||||
--- facile-1.1/src/fcl_data.ml 2004-09-08 11:51:02.000000000 +0200
|
||||
+++ facile-1.1-patched//src/fcl_data.ml 2012-12-16 13:49:36.286722670 +0100
|
||||
@@ -16,7 +16,7 @@ end
|
||||
|
||||
module Hashtbl = struct
|
||||
type ('a, 'b) t = ('a, 'b) Hashtbl.t
|
||||
- let create = Hashtbl.create
|
||||
+ let create x = Hashtbl.create x
|
||||
let get h = h
|
||||
|
||||
let add h k d =
|
Loading…
Reference in New Issue
Block a user