summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/janestreet/js-build-tools-darwin.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/janestreet/js-build-tools-darwin.patch')
-rw-r--r--pkgs/development/ocaml-modules/janestreet/js-build-tools-darwin.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/js-build-tools-darwin.patch b/pkgs/development/ocaml-modules/janestreet/js-build-tools-darwin.patch
new file mode 100644
index 000000000000..8878b4be68b8
--- /dev/null
+++ b/pkgs/development/ocaml-modules/janestreet/js-build-tools-darwin.patch
@@ -0,0 +1,11 @@
+--- a/ocamlbuild_goodies/jane_street_ocamlbuild_goodies.ml
++++ b/ocamlbuild_goodies/jane_street_ocamlbuild_goodies.ml
+@@ -65,7 +65,7 @@ let track_external_deps = function
+
+     let stat, md5sum =
+       match run_and_read "uname" |> String.trim with
+-      | "Darwin" ->
++      | "FreeBSD" | "NetBSD" ->
+         (S [A "stat"; A "-f"; A "%d:%i:%m"],
+          A "md5")
+       | _ ->