Unverified Commit d921fdff authored by Ulrik Strid's avatar Ulrik Strid Committed by GitHub
Browse files

ocamlPackages.httpcats: init at 0.1.0 (#482050)

parents c171bfa9 d383c1e6
Loading
Loading
Loading
Loading
+57 −0
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  buildDunePackage,
  lib,
  logs,
  miou,
  fmt,
  h2,
  h1,
  ca-certs,
  bstr,
  tls-miou-unix,
  dns-client-miou-unix,
  happy-eyeballs-miou-unix,
  mirage-crypto-rng-miou-unix,
  alcotest,
  digestif,
}:

buildDunePackage (finalAttrs: {
  pname = "httpcats";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "robur-coop";
    repo = "httpcats";
    tag = "v${finalAttrs.version}";
    hash = "sha256-t3gSfv73XYntle1dd4k9bv893pGStk1NHz62mAvcHAs=";
  };

  propagatedBuildInputs = [
    h2
    h1
    ca-certs
    bstr
    tls-miou-unix
    dns-client-miou-unix
    happy-eyeballs-miou-unix
  ];

  doCheck = true;
  checkInputs = [
    logs
    fmt
    mirage-crypto-rng-miou-unix
    alcotest
    digestif
  ];

  meta = {
    inherit (finalAttrs.src.meta) homepage;
    description = "A simple HTTP client / server using h1, h2, and miou";
    changelog = "https://github.com/robur-coop/httpcats/blob/${finalAttrs.src.tag}/CHANGES.md";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ rpqt ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -825,6 +825,8 @@ let

        httpaf-lwt-unix = callPackage ../development/ocaml-modules/httpaf/lwt-unix.nix { };

        httpcats = callPackage ../development/ocaml-modules/httpcats { };

        httpun = callPackage ../development/ocaml-modules/httpun { };

        httpun-eio = callPackage ../development/ocaml-modules/httpun/eio.nix { };