ocamlPackages.mirage-flow: use Dune 3

This commit is contained in:
Vincent Laporte 2023-03-28 08:57:46 +02:00
parent 1bf4036f3c
commit 4f2c5e880d
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F
3 changed files with 13 additions and 9 deletions

View File

@ -1,11 +1,13 @@
{ buildDunePackage, mirage-flow, fmt, ocaml_lwt, logs, cstruct, mirage-clock }:
{ buildDunePackage, mirage-flow, fmt, lwt, logs, cstruct, mirage-clock }:
buildDunePackage {
pname = "mirage-flow-combinators";
inherit (mirage-flow) version useDune2 src;
inherit (mirage-flow) version src;
propagatedBuildInputs = [ ocaml_lwt logs cstruct mirage-clock mirage-flow ];
duneVersion = "3";
propagatedBuildInputs = [ lwt logs cstruct mirage-clock mirage-flow ];
meta = mirage-flow.meta // {
description = "Flow implementations and combinators for MirageOS specialized to lwt";

View File

@ -1,18 +1,18 @@
{ lib, buildDunePackage, fetchurl, cstruct, fmt, ocaml_lwt }:
{ lib, buildDunePackage, fetchurl, cstruct, fmt, lwt }:
buildDunePackage rec {
pname = "mirage-flow";
version = "3.0.0";
useDune2 = true;
minimumOCamlVersion = "4.05";
duneVersion = "3";
minimalOCamlVersion = "4.05";
src = fetchurl {
url = "https://github.com/mirage/mirage-flow/releases/download/v${version}/mirage-flow-v${version}.tbz";
sha256 = "sha256-1wvabIXsJ0e+2IvE2V8mnSgQUDuSkT8IB75SkWlhOPw=";
hash = "sha256-1wvabIXsJ0e+2IvE2V8mnSgQUDuSkT8IB75SkWlhOPw=";
};
propagatedBuildInputs = [ cstruct fmt ocaml_lwt ];
propagatedBuildInputs = [ cstruct fmt lwt ];
meta = {
description = "Flow implementations and combinators for MirageOS";

View File

@ -5,7 +5,9 @@
buildDunePackage {
pname = "mirage-flow-unix";
inherit (mirage-flow) version useDune2 src;
inherit (mirage-flow) version src;
duneVersion = "3";
# Make tests compatible with alcotest 1.4.0
postPatch = ''