···1-{ stdenv, fetchurl, ocaml, findlib, ncurses, camlp4 }:
0023stdenv.mkDerivation {
45- name = "ocp-build-1.99.9-beta";
67- src = fetchurl {
8- url = http://www.typerex.org/pub/ocp-build/ocp-build.1.99.9-beta.tar.gz;
9- sha256 = "0wcb49bp239ns9mz55ky0kfjcz80cp97k0j0rwaw4h5sp3phn4l0";
0010 };
1112- buildInputs = [ ocaml findlib ncurses camlp4 ];
13 preInstall = "mkdir -p $out/bin";
14-15- # In the Nix sandbox, the TERM variable is unset and stty does not
16- # work. In such a case, ocp-build crashes due to a bug. The
17- # ./fix-for-no-term.patch fixes this bug in the source code and hence
18- # also in the final installed version of ocp-build. However, it does not
19- # fix the bug in the precompiled bootstrap version of ocp-build that is
20- # used during the compilation process. In order to bypass the bug until
21- # it's also fixed upstream, we simply set TERM to some valid entry in the
22- # terminfo database during the bootstrap.
23- TERM = "xterm";
2425 meta = with stdenv.lib; {
26 homepage = http://www.typerex.org/ocp-build.html;