diff --git a/pkgs/development/ocaml-modules/git-unix/default.nix b/pkgs/development/ocaml-modules/git-unix/default.nix new file mode 100644 index 000000000000..1fd4fd926492 --- /dev/null +++ b/pkgs/development/ocaml-modules/git-unix/default.nix @@ -0,0 +1,21 @@ +{ stdenv, ocaml, findlib, jbuilder, git-http +, ocaml_lwt, tls, conduit, magic-mime, cmdliner, mtime +}: + +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-git-unix-${version}"; + inherit (git-http) version src; + + buildInputs = [ ocaml findlib jbuilder cmdliner mtime ]; + + propagatedBuildInputs = [ conduit git-http magic-mime ocaml_lwt tls ]; + + buildPhase = "jbuilder build -p git-unix"; + + inherit (jbuilder) installPhase; + + meta = { + description = "Unix backend for the Git protocol(s)"; + inherit (git-http.meta) homepage license maintainers platforms; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index a7db46f21f1a..c27dd65beebe 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -251,6 +251,8 @@ let git-http = callPackage ../development/ocaml-modules/git-http { }; + git-unix = callPackage ../development/ocaml-modules/git-unix { }; + gmetadom = callPackage ../development/ocaml-modules/gmetadom { }; gtktop = callPackage ../development/ocaml-modules/gtktop { };