diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/github/unix.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/github/unix.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/github/unix.nix b/nixpkgs/pkgs/development/ocaml-modules/github/unix.nix new file mode 100644 index 000000000000..342be1069ce9 --- /dev/null +++ b/nixpkgs/pkgs/development/ocaml-modules/github/unix.nix @@ -0,0 +1,25 @@ +{ lib, buildDunePackage, github +, cohttp, cohttp-lwt-unix, stringext, cmdliner, lwt +}: + +buildDunePackage { + pname = "github-unix"; + inherit (github) version src; + + postPatch = '' + substituteInPlace unix/dune --replace 'github bytes' 'github' + ''; + + propagatedBuildInputs = [ + github + cohttp + cohttp-lwt-unix + stringext + cmdliner + lwt + ]; + + meta = github.meta // { + description = "GitHub APIv3 Unix library"; + }; +} |