nixpkgs-suyu/pkgs/development/ocaml-modules/github/unix.nix
Vincent Laporte 683f2f5ba2
ocamlPackage.{cohttp,github-unix}: fix for OCaml 5.0 (#237686)
* ocamlPackages.cohttp: fix for OCaml 5.0

* ocamlPackages.github-unix: fix for OCaml 5.0

Co-authored-by: Ulrik Strid <ulrik.strid@outlook.com>
2023-06-15 13:21:03 +02:00

25 lines
446 B
Nix

{ 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";
};
}