2015-06-14 22:22:46 +02:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ncurses, camlp4 }:
|
2014-10-28 18:05:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2015-06-14 22:22:46 +02:00
|
|
|
name = "ocp-build-1.99.9-beta";
|
2014-10-28 18:05:53 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-06-14 22:22:46 +02:00
|
|
|
url = http://www.typerex.org/pub/ocp-build/ocp-build.1.99.9-beta.tar.gz;
|
|
|
|
sha256 = "0wcb49bp239ns9mz55ky0kfjcz80cp97k0j0rwaw4h5sp3phn4l0";
|
2014-10-28 18:05:53 +01:00
|
|
|
};
|
|
|
|
|
2015-06-14 22:22:46 +02:00
|
|
|
buildInputs = [ ocaml findlib ncurses camlp4 ];
|
|
|
|
preInstall = "mkdir -p $out/bin";
|
2014-10-28 18:05:53 +01:00
|
|
|
|
|
|
|
# In the Nix sandbox, the TERM variable is unset and stty does not
|
|
|
|
# work. In such a case, ocp-build crashes due to a bug. The
|
|
|
|
# ./fix-for-no-term.patch fixes this bug in the source code and hence
|
|
|
|
# also in the final installed version of ocp-build. However, it does not
|
|
|
|
# fix the bug in the precompiled bootstrap version of ocp-build that is
|
|
|
|
# used during the compilation process. In order to bypass the bug until
|
|
|
|
# it's also fixed upstream, we simply set TERM to some valid entry in the
|
|
|
|
# terminfo database during the bootstrap.
|
|
|
|
TERM = "xterm";
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|