2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocaml, findlib }:
|
2016-07-13 12:56:05 +00:00
|
|
|
let
|
2019-02-24 10:25:16 +00:00
|
|
|
version = "0.14.0";
|
2016-07-13 12:56:05 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2016-12-04 11:25:37 +00:00
|
|
|
name = "ocamlbuild-${version}";
|
2016-07-13 12:56:05 +00:00
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml";
|
|
|
|
repo = "ocamlbuild";
|
|
|
|
rev = version;
|
2019-02-24 10:25:16 +00:00
|
|
|
sha256 = "1hb5mcdz4wv7sh1pj7dq9q4fgz5h3zg7frpiya6s8zd3ypwzq0kh";
|
2016-07-13 12:56:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
make -f configure.make Makefile.config \
|
|
|
|
"OCAMLBUILD_PREFIX=$out" \
|
|
|
|
"OCAMLBUILD_BINDIR=$out/bin" \
|
2017-03-21 18:13:32 +00:00
|
|
|
"OCAMLBUILD_MANDIR=$out/share/man" \
|
2016-07-13 12:56:05 +00:00
|
|
|
"OCAMLBUILD_LIBDIR=$OCAMLFIND_DESTDIR"
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ocaml/ocamlbuild/";
|
2016-12-04 11:25:37 +00:00
|
|
|
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 12:56:05 +00:00
|
|
|
}
|