2016-07-13 14:56:05 +02:00
|
|
|
{stdenv, fetchFromGitHub, ocaml, findlib, buildOcaml, type_conv, camlp4,
|
|
|
|
ocamlmod, ocamlify, ounit, expect}:
|
|
|
|
let
|
2017-03-21 19:13:32 +01:00
|
|
|
version = "0.11.0";
|
2016-07-13 14:56:05 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2016-12-04 12:25:37 +01:00
|
|
|
name = "ocamlbuild-${version}";
|
2016-07-13 14:56:05 +02:00
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml";
|
|
|
|
repo = "ocamlbuild";
|
|
|
|
rev = version;
|
2017-03-21 19:13:32 +01:00
|
|
|
sha256 = "0c8lv15ngmrc471jmkv0jp3d573chibwnjlavps047d9hd8gwxak";
|
2016-07-13 14:56:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
make -f configure.make Makefile.config \
|
|
|
|
"OCAMLBUILD_PREFIX=$out" \
|
|
|
|
"OCAMLBUILD_BINDIR=$out/bin" \
|
2017-03-21 19:13:32 +01:00
|
|
|
"OCAMLBUILD_MANDIR=$out/share/man" \
|
2016-07-13 14:56:05 +02:00
|
|
|
"OCAMLBUILD_LIBDIR=$OCAMLFIND_DESTDIR"
|
|
|
|
'';
|
|
|
|
|
2016-12-04 12:25:37 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/ocaml/ocamlbuild/;
|
|
|
|
description = "A build system with builtin rules to easily build most OCaml projects";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
2016-07-13 14:56:05 +02:00
|
|
|
}
|