ocamlPackages.github*: init at 4.4.1
This commit is contained in:
parent
85cc9390b7
commit
e7262d704f
23
pkgs/development/ocaml-modules/github/data.nix
Normal file
23
pkgs/development/ocaml-modules/github/data.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
34
pkgs/development/ocaml-modules/github/default.nix
Normal file
34
pkgs/development/ocaml-modules/github/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
21
pkgs/development/ocaml-modules/github/jsoo.nix
Normal file
21
pkgs/development/ocaml-modules/github/jsoo.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
23
pkgs/development/ocaml-modules/github/unix.nix
Normal file
23
pkgs/development/ocaml-modules/github/unix.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -571,6 +571,11 @@ let
|
||||||
git-binary = pkgs.git;
|
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 = callPackage ../development/ocaml-modules/gluten { };
|
||||||
gluten-lwt = callPackage ../development/ocaml-modules/gluten/lwt.nix { };
|
gluten-lwt = callPackage ../development/ocaml-modules/gluten/lwt.nix { };
|
||||||
gluten-lwt-unix = callPackage ../development/ocaml-modules/gluten/lwt-unix.nix { };
|
gluten-lwt-unix = callPackage ../development/ocaml-modules/gluten/lwt-unix.nix { };
|
||||||
|
|
Loading…
Reference in a new issue