2021-01-11 13:14:57 +00:00
|
|
|
{ lib, buildOcaml, fetchurl, ocaml_oasis, opaline }:
|
2016-09-13 22:39:54 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2018-05-29 06:27:27 +01:00
|
|
|
buildInputs = [ ocaml_oasis opaline ];
|
2016-09-13 22:39:54 +01:00
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
configurePhase = "./configure --prefix $prefix";
|
2018-05-29 06:27:27 +01:00
|
|
|
installPhase = "opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR ${name}.install";
|
2016-09-13 22:39:54 +01:00
|
|
|
|
2016-09-20 20:13:19 +01:00
|
|
|
patches = [ ./js-build-tools-darwin.patch ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-09-13 22:39:54 +01:00
|
|
|
description = "Jane Street Build Tools";
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|