Unverified Commit f9adb566 authored by Vincent Laporte's avatar Vincent Laporte Committed by GitHub
Browse files

ocamlPackages.hpack: 0.9.0 → 0.10.0 (#225270)

* ocamlPackages.hpack: 0.9.0 → 0.10.0

ocamlPackages.paf: 0.4.0 → 0.5.0

ocamlPackages.http-mirage-client: 0.0.2 → 0.0.3

* ocamlPackages.httpaf: use Dune 3
parent 11c129c1
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -7,14 +7,15 @@

buildDunePackage rec {
  pname = "hpack";
  version = "0.9.0";
  version = "0.10.0";

  src = fetchurl {
    url = "https://github.com/anmonteiro/ocaml-h2/releases/download/${version}/h2-${version}.tbz";
    sha256 = "sha256-7gjRhJs2mufQbImAXiKFT9mZ1kHGSHHwjCVZM5f0C14=";
    hash = "sha256-n9avpVL6HD2KBON2FpnUeuH3HOUDOA29iSmjdcxMRvE=";
  };

  minimalOCamlVersion = "4.04";
  duneVersion = "3";
  minimalOCamlVersion = "4.08";

  propagatedBuildInputs = [
    angstrom
+2 −11
Original line number Diff line number Diff line
{ lib
, fetchurl
, fetchpatch
, buildDunePackage
, h2
, httpaf
@@ -17,24 +16,16 @@

buildDunePackage rec {
  pname = "http-mirage-client";
  version = "0.0.2";
  version = "0.0.3";

  duneVersion = "3";
  minimalOCamlVersion = "4.08";

  src = fetchurl {
    url = "https://github.com/roburio/http-mirage-client/releases/download/v${version}/http-mirage-client-${version}.tbz";
    hash = "sha256-stom13t3Kn1ehkeURem39mxhd3Lmlz8z9m3tHGcp5vY=";
    hash = "sha256-6PMxZQfPiDTFbj9gOO2tW5FHF0MUP5tOySjkYg+QwGA=";
  };

  # Make tests use mirage-crypto
  patches = lib.lists.map fetchpatch [
    { url = "https://github.com/roburio/http-mirage-client/commit/c6cd38db9c23ac23e7c3e4cf2d41420f58034e8d.patch";
      hash = "sha256-b3rurqF0DxLpVQEhVfROwc7qyul0Fjfl3zhD8AkzemU="; }
    { url = "https://github.com/roburio/http-mirage-client/commit/0a5367e7c6d9b7f45c88493f7a596f7a83e8c7d5.patch";
      hash = "sha256-Q6YlfuiAfsyhty9EvoBetvekuU25KjrH5wwGwYTAAiA="; }
    ];

  propagatedBuildInputs = [
    h2
    httpaf
+4 −3
Original line number Diff line number Diff line
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage, ocaml
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage
, angstrom, faraday, alcotest
}:

@@ -6,7 +6,8 @@ buildDunePackage rec {
  pname = "httpaf";
  version = "0.7.1";

  useDune2 = true;
  duneVersion = "3";
  minimalOCamlVersion = "4.08";

  src = fetchFromGitHub {
    owner = "inhabitedtype";
@@ -17,7 +18,7 @@ buildDunePackage rec {

  checkInputs = [ alcotest ];
  propagatedBuildInputs = [ angstrom faraday ];
  doCheck = lib.versionAtLeast ocaml.version "4.08";
  doCheck = true;

  meta = {
    description = "A high-performance, memory-efficient, and scalable web server for OCaml";
+0 −1
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ buildDunePackage {
  inherit (paf)
    version
    src
    patches
    ;

  duneVersion = "3";
+2 −11
Original line number Diff line number Diff line
{ buildDunePackage
, lib
, fetchurl
, fetchpatch
, mirage-stack
, mirage-time
, h2
@@ -25,21 +24,13 @@

buildDunePackage rec {
  pname = "paf";
  version = "0.4.0";
  version = "0.5.0";

  src = fetchurl {
    url = "https://github.com/dinosaure/paf-le-chien/releases/download/${version}/paf-${version}.tbz";
    hash = "sha256-ux8fk4XDdih4Ua9NGOJVSuPseJBPv6+6ND/esHrluQE=";
    hash = "sha256-oWRvwb8DhtF3ltWaZ6moKmgadFUngruo1UOIaGNV/oM=";
  };

  patches = [
    # Compatibility with mirage-crypto 0.11.0
    (fetchpatch {
      url = "https://github.com/dinosaure/paf-le-chien/commit/2f308c1c4d3ff49d42136f8ff86a4385661e4d1b.patch";
      hash = "sha256-jmSeUpoRoUMPUNEH3Av2LxgRZs+eAectK+CpoH+SdpY=";
    })
  ];

  minimalOCamlVersion = "4.08";
  duneVersion = "3";

Loading