2018-06-25 22:19:44 -07:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ncurses }:
|
2016-04-25 02:40:22 -07:00
|
|
|
let
|
2017-07-16 03:42:45 -07:00
|
|
|
version = "1.99.19-beta";
|
2016-04-25 02:40:22 -07:00
|
|
|
in
|
2018-06-25 22:19:44 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-22 00:46:40 -07:00
|
|
|
|
2018-06-25 22:19:44 -07:00
|
|
|
name = "ocaml${ocaml.version}-ocp-build-${version}";
|
2014-10-28 10:05:53 -07:00
|
|
|
|
2016-07-22 00:46:40 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro";
|
|
|
|
repo = "ocp-build";
|
|
|
|
rev = version;
|
2017-07-16 03:42:45 -07:00
|
|
|
sha256 = "162k5l0cxyqanxlml5v8mqapdq5qbqc9m4b8wdjq7mf523b3h2zj";
|
2014-10-28 10:05:53 -07:00
|
|
|
};
|
|
|
|
|
2018-06-25 22:19:44 -07:00
|
|
|
buildInputs = [ ocaml findlib ];
|
2016-04-25 02:40:22 -07:00
|
|
|
propagatedBuildInputs = [ ncurses ];
|
2015-06-14 13:22:46 -07:00
|
|
|
preInstall = "mkdir -p $out/bin";
|
2016-04-25 02:40:22 -07:00
|
|
|
preConfigure = ''
|
|
|
|
export configureFlags="$configureFlags --with-metadir=$OCAMLFIND_DESTDIR"
|
|
|
|
'';
|
2014-10-28 10:05:53 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-01-05 11:42:46 -08:00
|
|
|
homepage = https://www.typerex.org/ocp-build.html;
|
2014-10-28 10:05:53 -07:00
|
|
|
description = "A build tool for OCaml";
|
|
|
|
longDescription = ''
|
|
|
|
ocp-build is a build system for OCaml application, based on simple
|
|
|
|
descriptions of packages. ocp-build combines the descriptions of
|
|
|
|
packages, and optimize the parallel compilation of files depending on
|
2014-12-29 18:31:03 -08:00
|
|
|
the number of cores and the automatically-inferred dependencies
|
2014-10-28 10:05:53 -07:00
|
|
|
between source files.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3;
|
2015-12-24 09:49:07 -08:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-28 10:05:53 -07:00
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|