nixpkgs-suyu/pkgs/development/ocaml-modules/git/default.nix
Vincent Laporte d8ebe4f2cf
ocamlPackages.git: 1.11.4 -> 1.11.5
Also enable tests
2018-05-04 07:04:17 +00:00

35 lines
939 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, opam
, astring, decompress, fmt, hex, logs, mstruct, ocaml_lwt, ocamlgraph, uri
, alcotest, mtime, nocrypto
}:
stdenv.mkDerivation rec {
version = "1.11.5";
name = "ocaml${ocaml.version}-git-${version}";
src = fetchFromGitHub {
owner = "mirage";
repo = "ocaml-git";
rev = version;
sha256 = "0r1bxpxjjnl9hh8xbabsxl7svzvd19hfy73a2y1m4kljmw64dpfh";
};
buildInputs = [ ocaml findlib jbuilder alcotest mtime nocrypto ];
propagatedBuildInputs = [ astring decompress fmt hex logs mstruct ocaml_lwt ocamlgraph uri ];
buildPhase = "jbuilder build -p git";
inherit (jbuilder) installPhase;
doCheck = true;
checkPhase = "jbuilder runtest -p git";
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;
};
}