nixpkgs/pkgs/development/ocaml-modules/janestreet/js-build-tools.nix
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

30 lines
788 B
Nix

{stdenv, buildOcaml, fetchurl, ocaml_oasis, opam}:
buildOcaml rec {
name = "js-build-tools";
version = "113.33.06";
minimumSupportedOcamlVersion = "4.02";
src = fetchurl {
url = "https://github.com/janestreet/${name}/archive/${version}.tar.gz";
sha256 = "1nvgyp4gsnlnpix3li6kr90b12iin5ihichv298p03i6h2809dia";
};
hasSharedObjects = true;
buildInputs = [ ocaml_oasis opam ];
dontAddPrefix = true;
configurePhase = "./configure --prefix $prefix";
installPhase = "opam-installer -i --prefix $prefix --libdir `ocamlfind printconf destdir` ${name}.install";
patches = [ ./js-build-tools-darwin.patch ];
meta = with stdenv.lib; {
description = "Jane Street Build Tools";
maintainers = [ maintainers.maurer ];
license = licenses.asl20;
};
}