3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/ocaml/ocamlbuild/default.nix

36 lines
899 B
Nix
Raw Normal View History

2017-10-14 07:31:55 +01:00
{ stdenv, fetchFromGitHub, ocaml, findlib }:
let
version = "0.14.0";
in
stdenv.mkDerivation {
2016-12-04 11:25:37 +00:00
name = "ocamlbuild-${version}";
inherit version;
src = fetchFromGitHub {
owner = "ocaml";
repo = "ocamlbuild";
rev = version;
sha256 = "1hb5mcdz4wv7sh1pj7dq9q4fgz5h3zg7frpiya6s8zd3ypwzq0kh";
};
createFindlibDestdir = true;
buildInputs = [ ocaml findlib ];
configurePhase = ''
make -f configure.make Makefile.config \
"OCAMLBUILD_PREFIX=$out" \
"OCAMLBUILD_BINDIR=$out/bin" \
"OCAMLBUILD_MANDIR=$out/share/man" \
"OCAMLBUILD_LIBDIR=$OCAMLFIND_DESTDIR"
'';
2016-12-04 11:25:37 +00:00
meta = with stdenv.lib; {
homepage = "https://github.com/ocaml/ocamlbuild/";
2016-12-04 11:25:37 +00:00
description = "A build system with builtin rules to easily build most OCaml projects";
license = licenses.lgpl2;
inherit (ocaml.meta) platforms;
maintainers = with maintainers; [ vbgl ];
};
}