2021-01-15 22:18:51 +00:00
|
|
|
{ lib, buildOcaml, fetchurl, ocaml_oasis, opaline }:
|
2020-04-24 23:36:52 +00: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;
|
|
|
|
|
|
|
|
buildInputs = [ ocaml_oasis opaline ];
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
dontAddStaticConfigureFlags = true;
|
|
|
|
configurePlatforms = [];
|
2020-04-24 23:36:52 +00:00
|
|
|
configurePhase = "./configure --prefix $prefix";
|
|
|
|
installPhase = "opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR ${name}.install";
|
|
|
|
|
|
|
|
patches = [ ./js-build-tools-darwin.patch ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Jane Street Build Tools";
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|