2016-07-22 09:46:40 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ncurses }:
|
|
|
|
|
|
|
|
let version = "1.99.16-beta"; in
|
2014-10-28 18:05:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2016-07-22 09:46:40 +02:00
|
|
|
name = "ocp-build-${version}";
|
2014-10-28 18:05:53 +01:00
|
|
|
|
2016-07-22 09:46:40 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro";
|
|
|
|
repo = "ocp-build";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1nkd7wlf1vrc4p20bs94vbkd970q2ag23csh9a897ka65rk08gvw";
|
2014-10-28 18:05:53 +01:00
|
|
|
};
|
|
|
|
|
2016-07-22 09:46:40 +02:00
|
|
|
buildInputs = [ ocaml findlib ncurses ];
|
2015-06-14 22:22:46 +02:00
|
|
|
preInstall = "mkdir -p $out/bin";
|
2014-10-28 18:05:53 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-02-12 06:59:28 +01:00
|
|
|
homepage = http://www.typerex.org/ocp-build.html;
|
2014-10-28 18:05:53 +01: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 03:31:03 +01:00
|
|
|
the number of cores and the automatically-inferred dependencies
|
2014-10-28 18:05:53 +01:00
|
|
|
between source files.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3;
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-28 18:05:53 +01:00
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|