1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/pkgs/development/tools/ocaml/ocp-build/default.nix
Vincent Laporte fd018bdadd
ocamlPackages.ocp-build: remove spurious dependency to camlp4
Change attribute name from “ocpBuild” to “ocp-build”.
2018-06-26 20:14:57 +00:00

38 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib, ncurses }:
let
version = "1.99.19-beta";
in
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ocp-build-${version}";
src = fetchFromGitHub {
owner = "OCamlPro";
repo = "ocp-build";
rev = version;
sha256 = "162k5l0cxyqanxlml5v8mqapdq5qbqc9m4b8wdjq7mf523b3h2zj";
};
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ ncurses ];
preInstall = "mkdir -p $out/bin";
preConfigure = ''
export configureFlags="$configureFlags --with-metadir=$OCAMLFIND_DESTDIR"
'';
meta = with stdenv.lib; {
homepage = https://www.typerex.org/ocp-build.html;
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
between source files.
'';
license = licenses.gpl3;
platforms = ocaml.meta.platforms or [];
maintainers = [ maintainers.jirkamarsik ];
};
}