3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/janestreet/js-build-tools.nix

30 lines
790 B
Nix
Raw Normal View History

2017-07-11 03:45:08 +01:00
{ stdenv, buildOcaml, fetchurl, ocaml_oasis, opam }:
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;
2017-07-11 03:45:08 +01:00
buildInputs = [ ocaml_oasis opam ];
2016-09-13 22:39:54 +01:00
dontAddPrefix = true;
configurePhase = "./configure --prefix $prefix";
installPhase = "opam-installer -i --prefix $prefix --libdir `ocamlfind printconf destdir` ${name}.install";
patches = [ ./js-build-tools-darwin.patch ];
2016-09-13 22:39:54 +01:00
meta = with stdenv.lib; {
description = "Jane Street Build Tools";
maintainers = [ maintainers.maurer ];
license = licenses.asl20;
};
}