nixpkgs/pkgs/development/ocaml-modules/janestreet/js-build-tools-darwin.patch
Matthew Maurer 65fb52f210 js-build-tools: Fix darwin build
On darwin, js-build-tools expects an OSX style userland and stat binary.
However, under nix we use the nix version of stat, which speaks linux-style
flags.

This patch removes js-build-tools special casing so that it speaks to stat
in linux style.
2016-09-20 15:13:19 -04:00

12 lines
383 B
Diff

--- 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")
| _ ->