mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
65fb52f210
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.
12 lines
383 B
Diff
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")
|
|
| _ ->
|