From ed12c7a9b9b1545e07d25fdf062600d8b2d58c4e Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 2 Jul 2017 08:26:39 +0000 Subject: [PATCH] ocamlPackages.git-http: init at 1.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Client implementation of the “Smart” HTTP Git protocol in pure OCaml. --- .../ocaml-modules/git-http/default.nix | 19 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/ocaml-modules/git-http/default.nix 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 { };