diff --git a/pkgs/development/ocaml-modules/git-http/default.nix b/pkgs/development/ocaml-modules/git-http/default.nix new file mode 100644 index 000000000000..7df47b093b35 --- /dev/null +++ b/pkgs/development/ocaml-modules/git-http/default.nix @@ -0,0 +1,19 @@ +{ stdenv, ocaml, findlib, jbuilder, git, cohttp }: + +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-git-http-${version}"; + inherit (git) version src; + + buildInputs = [ ocaml findlib jbuilder ]; + + propagatedBuildInputs = [ git cohttp ]; + + buildPhase = "jbuilder build -p git-http"; + + inherit (jbuilder) installPhase; + + meta = { + description = "Client implementation of the “Smart” HTTP Git protocol in pure OCaml"; + inherit (git.meta) homepage license maintainers platforms; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 1b2e23916ef2..a7db46f21f1a 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -249,6 +249,8 @@ let git = callPackage ../development/ocaml-modules/git { }; + git-http = callPackage ../development/ocaml-modules/git-http { }; + gmetadom = callPackage ../development/ocaml-modules/gmetadom { }; gtktop = callPackage ../development/ocaml-modules/gtktop { };