nixpkgs/pkgs/development/ocaml-modules/janestreet/js-build-tools.nix
2021-11-01 16:19:30 +01:00

32 lines
843 B
Nix

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