nixpkgs/pkgs/development/tools/ocaml/ocp-build/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, ocaml, findlib, ncurses, buildOcaml }:
let
version = "1.99.19-beta";
in
buildOcaml {
name = "ocp-build";
inherit version;
2014-10-28 17:05:53 +00:00
src = fetchFromGitHub {
owner = "OCamlPro";
repo = "ocp-build";
rev = version;
sha256 = "162k5l0cxyqanxlml5v8mqapdq5qbqc9m4b8wdjq7mf523b3h2zj";
2014-10-28 17:05:53 +00:00
};
buildInputs = [ ocaml ];
propagatedBuildInputs = [ ncurses ];
preInstall = "mkdir -p $out/bin";
preConfigure = ''
export configureFlags="$configureFlags --with-metadir=$OCAMLFIND_DESTDIR"
'';
2014-10-28 17:05:53 +00:00
meta = with stdenv.lib; {
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
the number of cores and the automatically-inferred dependencies
2014-10-28 17:05:53 +00:00
between source files.
'';
license = licenses.gpl3;
platforms = ocaml.meta.platforms or [];
2014-10-28 17:05:53 +00:00
maintainers = [ maintainers.jirkamarsik ];
};
}