2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ncurses, cmdliner, re }:
|
2016-04-25 10:40:22 +01:00
|
|
|
let
|
2020-10-23 20:23:38 +01:00
|
|
|
version = "1.99.21";
|
2016-04-25 10:40:22 +01:00
|
|
|
in
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2016-07-22 08:46:40 +01:00
|
|
|
|
2020-10-23 20:23:38 +01:00
|
|
|
name = "ocaml${ocaml.version}-ocp-build-${version}-beta";
|
2014-10-28 17:05:53 +00:00
|
|
|
|
2016-07-22 08:46:40 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro";
|
|
|
|
repo = "ocp-build";
|
2020-10-23 20:23:38 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1641xzik98c7xnjwxpacijd6d9jzx340fmdn6i372z8h554jjlg9";
|
2014-10-28 17:05:53 +00:00
|
|
|
};
|
|
|
|
|
2020-10-23 20:23:38 +01:00
|
|
|
buildInputs = [ ocaml findlib cmdliner re ];
|
2016-04-25 10:40:22 +01:00
|
|
|
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
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://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 ];
|
|
|
|
};
|
|
|
|
}
|