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.
commit65fb52f21045134690bacf5d9c21086db20ab1d1
authorMatthew Maurer <matthew.r.maurer@gmail.com>
dateTue 20 Sep 2016, 15:13 (10 years ago)
parent1d0e6ba
pkgs/development/ocaml-modules/janestreet/js-build-tools-darwin.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/ocamlbuild_goodies/jane_street_ocamlbuild_goodies.ml
2++++ b/ocamlbuild_goodies/jane_street_ocamlbuild_goodies.ml
3+@@ -65,7 +65,7 @@ let track_external_deps = function
4+
5+ let stat, md5sum =
6+ match run_and_read "uname" |> String.trim with
7+- | "Darwin" ->
8++ | "FreeBSD" | "NetBSD" ->
9+ (S [A "stat"; A "-f"; A "%d:%i:%m"],
10+ A "md5")
11+ | _ ->
pkgs/development/ocaml-modules/janestreet/js-build-tools.nix+2
@@ -19,6 +19,8 @@ buildOcaml rec {
1919 configurePhase = "./configure --prefix $prefix";
2020 installPhase = "opam-installer -i --prefix $prefix --libdir `ocamlfind printconf destdir` ${name}.install";
2121
22+ patches = [ ./js-build-tools-darwin.patch ];
23+
2224 meta = with stdenv.lib; {
2325 description = "Jane Street Build Tools";
2426 maintainers = [ maintainers.maurer ];