diff --git a/pkgs/development/ocaml-modules/bitstring/2.0.4.nix b/pkgs/development/ocaml-modules/bitstring/2.0.4.nix index da4bcdcb527..beaf2fc7fd1 100644 --- a/pkgs/development/ocaml-modules/bitstring/2.0.4.nix +++ b/pkgs/development/ocaml-modules/bitstring/2.0.4.nix @@ -8,7 +8,7 @@ buildOcaml rec { sha256 = "0mapzn2ls5qcrzjm1az50lqjj76ldkmz4fbv2phc9w6smab50qy5"; }; - patches = [ ./camlp4.patch ./meta.patch ]; + patches = [ ./camlp4.patch ./meta.patch ./srcdir.patch ]; buildInputs = [time]; doCheck = true; diff --git a/pkgs/development/ocaml-modules/bitstring/default.nix b/pkgs/development/ocaml-modules/bitstring/default.nix index ae01cf9d7b5..2dc1b515c03 100644 --- a/pkgs/development/ocaml-modules/bitstring/default.nix +++ b/pkgs/development/ocaml-modules/bitstring/default.nix @@ -9,7 +9,7 @@ buildOcaml rec { sha256 = "1lh97qf1b7mq64pxkphr2w91ri5hfwg58cpjb2xd8a453c9jylw4"; }; - patches = [ ./camlp4-git.patch ./meta.patch ]; + patches = [ ./camlp4-git.patch ./meta.patch ./srcdir.patch ]; buildInputs = [time autoconf automake]; doCheck = true; diff --git a/pkgs/development/ocaml-modules/bitstring/srcdir.patch b/pkgs/development/ocaml-modules/bitstring/srcdir.patch new file mode 100644 index 00000000000..d53760f1d6f --- /dev/null +++ b/pkgs/development/ocaml-modules/bitstring/srcdir.patch @@ -0,0 +1,11 @@ +--- a/Makefile.in 2015-09-01 06:32:15.111441188 +0200 ++++ b/Makefile.in 2015-09-01 06:32:56.001084480 +0200 +@@ -125,7 +125,7 @@ + + byteswap.h: byteswap.in.h + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ +- cat $(srcdir)/byteswap.in.h; \ ++ cat $(top_srcdir)/byteswap.in.h; \ + } > $@-t + mv -f $@-t $@ +