2016-04-25 10:40:22 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ncurses, buildOcaml }:
|
|
|
|
let
|
2017-02-27 19:11:29 +00:00
|
|
|
version = "1.99.18-beta";
|
2016-04-25 10:40:22 +01:00
|
|
|
in
|
|
|
|
buildOcaml {
|
2016-07-22 08:46:40 +01:00
|
|
|
|
2016-04-25 10:40:22 +01:00
|
|
|
name = "ocp-build";
|
|
|
|
inherit version;
|
2014-10-28 17:05:53 +00:00
|
|
|
|
2016-07-22 08:46:40 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro";
|
|
|
|
repo = "ocp-build";
|
|
|
|
rev = version;
|
2017-02-27 19:11:29 +00:00
|
|
|
sha256 = "14vzam8p1d2c5qxljrhsfppd8a3j9lxx8kzxlplwclkr2laar0ss";
|
2014-10-28 17:05:53 +00:00
|
|
|
};
|
|
|
|
|
2016-04-25 10:40:22 +01:00
|
|
|
buildInputs = [ ocaml ];
|
|
|
|
propagatedBuildInputs = [ ncurses ];
|
2015-06-14 21:22:46 +01:00
|
|
|
preInstall = "mkdir -p $out/bin";
|
2016-04-25 10:40:22 +01:00
|
|
|
preConfigure = ''
|
|
|
|
export configureFlags="$configureFlags --with-metadir=$OCAMLFIND_DESTDIR"
|
|
|
|
'';
|
2014-10-28 17:05:53 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-02-12 05:59:28 +00:00
|
|
|
homepage = http://www.typerex.org/ocp-build.html;
|
2014-10-28 17:05:53 +00: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-30 02:31:03 +00:00
|
|
|
the number of cores and the automatically-inferred dependencies
|
2014-10-28 17:05:53 +00:00
|
|
|
between source files.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-28 17:05:53 +00:00
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|