2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
|
2017-07-01 14:02:08 +01:00
|
|
|
, astring, decompress, fmt, hex, logs, mstruct, ocaml_lwt, ocamlgraph, uri
|
2018-05-03 19:37:47 +01:00
|
|
|
, alcotest, mtime, nocrypto
|
2017-07-01 14:02:08 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-05-03 19:37:47 +01:00
|
|
|
version = "1.11.5";
|
2017-07-01 14:02:08 +01:00
|
|
|
name = "ocaml${ocaml.version}-git-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirage";
|
|
|
|
repo = "ocaml-git";
|
|
|
|
rev = version;
|
2018-05-03 19:37:47 +01:00
|
|
|
sha256 = "0r1bxpxjjnl9hh8xbabsxl7svzvd19hfy73a2y1m4kljmw64dpfh";
|
2017-07-01 14:02:08 +01:00
|
|
|
};
|
|
|
|
|
2018-05-03 19:37:47 +01:00
|
|
|
buildInputs = [ ocaml findlib jbuilder alcotest mtime nocrypto ];
|
2017-07-01 14:02:08 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ astring decompress fmt hex logs mstruct ocaml_lwt ocamlgraph uri ];
|
|
|
|
|
|
|
|
buildPhase = "jbuilder build -p git";
|
|
|
|
|
|
|
|
inherit (jbuilder) installPhase;
|
|
|
|
|
2018-05-03 19:37:47 +01:00
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "jbuilder runtest -p git";
|
|
|
|
|
2017-07-01 14:02:08 +01:00
|
|
|
meta = {
|
|
|
|
description = "Git format and protocol in pure OCaml";
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|