From e8c0e8a04bf0772bd7a4a92557ce90106854c383 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 2 Jul 2017 08:38:28 +0000 Subject: [PATCH] ocamlPackages.git-unix: init at 1.11.0 Unix backend for the Git protocol(s) --- .../ocaml-modules/git-unix/default.nix | 21 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/ocaml-modules/git-unix/default.nix 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 { };