ocamlPackages.gitlab: init at 0.1.8

Release: https://github.com/tmcgilchrist/ocaml-gitlab/releases/tag/0.1.8
This commit is contained in:
zazedd
2024-07-06 00:52:54 +02:00
parent 3defb5ba2d
commit c1ee3e7ed5
4 changed files with 123 additions and 0 deletions
@@ -0,0 +1,47 @@
{
lib,
buildDunePackage,
fetchFromGitHub,
uri,
cohttp-lwt,
atdgen,
yojson,
iso8601,
stringext,
}:
buildDunePackage rec {
pname = "gitlab";
version = "0.1.8";
src = fetchFromGitHub {
owner = "tmcgilchrist";
repo = "ocaml-gitlab";
rev = version;
hash = "sha256-7pUpH1SoP4eW8ild5j+Tcy+aTXq0+eSkhKUOXJ6Z30k=";
};
minimalOCamlVersion = "4.08";
buildInputs = [ stringext ];
nativeBuildInputs = [ atdgen ];
propagatedBuildInputs = [
uri
cohttp-lwt
atdgen
yojson
iso8601
];
doCheck = true;
meta = with lib; {
homepage = "https://github.com/tmcgilchrist/ocaml-gitlab";
description = "Native OCaml bindings to Gitlab REST API v4";
license = licenses.bsd3;
changelog = "https://github.com/tmcgilchrist/ocaml-gitlab/releases/tag/${version}";
maintainers = with maintainers; [ zazedd ];
};
}
@@ -0,0 +1,28 @@
{
lib,
buildDunePackage,
gitlab,
cohttp,
cohttp-lwt-jsoo,
js_of_ocaml-lwt,
}:
buildDunePackage {
pname = "gitlab-jsoo";
inherit (gitlab) version src;
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
gitlab
cohttp
cohttp-lwt-jsoo
js_of_ocaml-lwt
];
doCheck = true;
meta = gitlab.meta // {
description = "Gitlab APIv4 JavaScript library";
};
}
@@ -0,0 +1,44 @@
{
lib,
buildDunePackage,
gitlab,
cmdliner,
cohttp,
cohttp-lwt-unix,
tls,
lwt,
stringext,
alcotest,
}:
buildDunePackage {
pname = "gitlab-unix";
inherit (gitlab) version src;
minimalOCamlVersion = "4.08";
postPatch = ''
substituteInPlace unix/dune --replace-fail "gitlab bytes" "gitlab"
'';
buildInputs = [
cohttp
tls
stringext
];
propagatedBuildInputs = [
gitlab
cmdliner
cohttp-lwt-unix
lwt
];
checkInputs = [ alcotest ];
doCheck = true;
meta = gitlab.meta // {
description = "Gitlab APIv4 Unix library";
};
}
+4
View File
@@ -610,6 +610,10 @@ let
github-jsoo = callPackage ../development/ocaml-modules/github/jsoo.nix { };
github-unix = callPackage ../development/ocaml-modules/github/unix.nix { };
gitlab = callPackage ../development/ocaml-modules/gitlab { };
gitlab-jsoo = callPackage ../development/ocaml-modules/gitlab/jsoo.nix { };
gitlab-unix = callPackage ../development/ocaml-modules/gitlab/unix.nix { };
gluon = callPackage ../development/ocaml-modules/gluon { };
gluten = callPackage ../development/ocaml-modules/gluten { };