ocamlPackages.github*: init at 4.4.1

This commit is contained in:
Niols 2023-05-03 11:41:44 +00:00
parent 85cc9390b7
commit e7262d704f
No known key found for this signature in database
GPG key ID: 0B4EB01A5527EA54
5 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{ lib, buildDunePackage, github
, yojson, atdgen
}:
buildDunePackage {
pname = "github-data";
inherit (github) version src;
duneVersion = "3";
nativeBuildInputs = [
atdgen
];
propagatedBuildInputs = [
yojson
atdgen
];
meta = github.meta // {
description = "GitHub APIv3 data library";
};
}

View file

@ -0,0 +1,34 @@
{ lib, buildDunePackage, fetchFromGitHub
, uri, cohttp, lwt, cohttp-lwt, github-data, yojson, stringext
}:
buildDunePackage rec {
pname = "github";
version = "4.4.1";
src = fetchFromGitHub {
owner = "mirage";
repo = "ocaml-github";
rev = version;
sha256 = "sha256-psUIiIvjVV2NTlBtHnBisWreaKKnsqIjKT2+mLnfsxg=";
};
duneVersion = "3";
propagatedBuildInputs = [
uri
cohttp
lwt
cohttp-lwt
github-data
yojson
stringext
];
meta = with lib; {
homepage = "https://github.com/mirage/ocaml-github";
description = "GitHub APIv3 OCaml library";
license = licenses.mit;
maintainers = with maintainers; [ niols ];
};
}

View file

@ -0,0 +1,21 @@
{ lib, buildDunePackage, github
, cohttp, cohttp-lwt-jsoo, js_of_ocaml-lwt
}:
buildDunePackage {
pname = "github-jsoo";
inherit (github) version src;
duneVersion = "3";
propagatedBuildInputs = [
github
cohttp
cohttp-lwt-jsoo
js_of_ocaml-lwt
];
meta = github.meta // {
description = "GitHub APIv3 JavaScript library";
};
}

View file

@ -0,0 +1,23 @@
{ lib, buildDunePackage, github
, cohttp, cohttp-lwt-unix, stringext, cmdliner, lwt
}:
buildDunePackage {
pname = "github-unix";
inherit (github) version src;
duneVersion = "3";
propagatedBuildInputs = [
github
cohttp
cohttp-lwt-unix
stringext
cmdliner
lwt
];
meta = github.meta // {
description = "GitHub APIv3 Unix library";
};
}

View file

@ -571,6 +571,11 @@ let
git-binary = pkgs.git;
};
github = callPackage ../development/ocaml-modules/github { };
github-data = callPackage ../development/ocaml-modules/github/data.nix { };
github-jsoo = callPackage ../development/ocaml-modules/github/jsoo.nix { };
github-unix = callPackage ../development/ocaml-modules/github/unix.nix { };
gluten = callPackage ../development/ocaml-modules/gluten { };
gluten-lwt = callPackage ../development/ocaml-modules/gluten/lwt.nix { };
gluten-lwt-unix = callPackage ../development/ocaml-modules/gluten/lwt-unix.nix { };