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