summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/janestreet/js-build-tools.nix
blob: d6e67b277cacf8465b7a104c5249e60fd4afd345 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, buildOcaml, fetchurl, ocaml_oasis, opam}:

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 opam ];

  dontAddPrefix = true;
  configurePhase = "./configure --prefix $prefix";
  installPhase = "opam-installer -i --prefix $prefix --libdir `ocamlfind printconf destdir` ${name}.install";

  meta = with stdenv.lib; {
    description = "Jane Street Build Tools";
    maintainers = [ maintainers.maurer ];
    license = licenses.asl20;
  };
}