3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #223540 from vbgl/ocaml-cstruct-6.2.0

ocamlPackages.cstruct: 6.1.1 → 6.2.0
This commit is contained in:
Ulrik Strid 2023-03-28 14:00:01 +02:00 committed by GitHub
commit 03d63fa0ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 53 additions and 31 deletions

View file

@ -4,6 +4,7 @@
buildDunePackage rec {
minimalOCamlVersion = "4.08";
duneVersion = "3";
pname = "asn1-combinators";
version = "0.2.6";

View file

@ -1,8 +1,6 @@
{ lib
, buildDunePackage
, fetchurl
, ocaml
, alcotest
, eqaf
, fmt
@ -14,17 +12,16 @@ buildDunePackage rec {
src = fetchurl {
url = "https://github.com/oklm-wsh/Callipyge/releases/download/v${version}/${pname}-${version}.tbz";
sha256 = "sha256-T/94a88xvK51TggjXecdKc9kyTE9aIyueIt5T24sZB0=";
hash = "sha256-T/94a88xvK51TggjXecdKc9kyTE9aIyueIt5T24sZB0=";
};
useDune2 = true;
duneVersion = "3";
minimumOCamlVersion = "4.03";
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [ fmt eqaf ];
# alcotest isn't available for OCaml < 4.08 due to fmt
doCheck = lib.versionAtLeast ocaml.version "4.08";
doCheck = true;
checkInputs = [ alcotest ];
meta = {

View file

@ -4,6 +4,8 @@ buildDunePackage rec {
pname = "cstruct-async";
inherit (cstruct) src version meta;
duneVersion = "3";
propagatedBuildInputs = [
async_unix
async

View file

@ -2,13 +2,14 @@
buildDunePackage rec {
pname = "cstruct";
version = "6.1.1";
version = "6.2.0";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz";
sha256 = "sha256-G3T5hw9qfuYAiSRZBxbdUzpyijyhC7GNqf6ovkZ/UY0=";
hash = "sha256-mngHM5JYDoNJFI+jq0sbLpidydMNB0AbBMlrfGDwPmI=";
};
buildInputs = [ fmt ];

View file

@ -9,6 +9,7 @@ else
inherit (cstruct) version src meta;
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [ cstruct lwt ];
}

View file

@ -11,6 +11,7 @@ else
inherit (cstruct) version src meta;
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];

View file

@ -9,6 +9,7 @@ buildDunePackage rec {
inherit (cstruct) version src meta;
minimalOCamlVersion = "4.08";
duneVersion = "3";
doCheck = true;
checkInputs = [ alcotest ];

View file

@ -9,6 +9,7 @@ else
inherit (cstruct) version src meta;
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [ cstruct ];
}

View file

@ -7,13 +7,13 @@ buildDunePackage rec {
minimalOCamlVersion = "4.08";
useDune2 = true;
duneVersion = "3";
src = fetchFromGitHub {
owner = "pveber";
repo = "dbf";
rev = "${version}";
sha256 = "sha256-h1K5YDLbXGEJi/quKXvSR0gZ+WkBzut7AsVFv+Bm8/g=";
rev = version;
hash = "sha256-h1K5YDLbXGEJi/quKXvSR0gZ+WkBzut7AsVFv+Bm8/g=";
};
buildInputs = [ ppx_cstruct ];

View file

@ -2,12 +2,13 @@
buildDunePackage rec {
minimalOCamlVersion = "4.07";
duneVersion = "3";
pname = "eqaf";
version = "0.9";
src = fetchurl {
url = "https://github.com/mirage/eqaf/releases/download/v${version}/eqaf-${version}.tbz";
sha256 = "sha256-7A4oqUasaBf5XVhU8FqZYa46hAi7YQ55z60BubJV3+A=";
hash = "sha256-7A4oqUasaBf5XVhU8FqZYa46hAi7YQ55z60BubJV3+A=";
};
propagatedBuildInputs = [ cstruct ];

View file

@ -5,10 +5,11 @@ buildDunePackage rec {
version = "3.0.0";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
sha256 = "sha256-DjbKdNkFa6YQgJDLmLsuvyrweb4/TNvqAiggcj/3hu4=";
hash = "sha256-DjbKdNkFa6YQgJDLmLsuvyrweb4/TNvqAiggcj/3hu4=";
};
nativeBuildInputs = [ pkg-config ];

View file

@ -8,10 +8,11 @@ buildDunePackage rec {
version = "4.1.0";
minimalOCamlVersion = "4.07";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/mirage-channel/releases/download/v${version}/mirage-channel-${version}.tbz";
sha256 = "sha256-sBdoUdTd9ZeNcHK0IBGBeOYDDqULM7EYX+Pz2f2nIQA=";
hash = "sha256-sBdoUdTd9ZeNcHK0IBGBeOYDDqULM7EYX+Pz2f2nIQA=";
};
propagatedBuildInputs = [ cstruct logs lwt mirage-flow ];

View file

@ -7,10 +7,11 @@ buildDunePackage rec {
version = "5.1.0";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/mirage-console/releases/download/v${version}/mirage-console-${version}.tbz";
sha256 = "sha256-mjYRisbNOJbYoSuWaGoPueXakmqAwmWh0ATvLLsvpNM=";
hash = "sha256-mjYRisbNOJbYoSuWaGoPueXakmqAwmWh0ATvLLsvpNM=";
};
propagatedBuildInputs = [ lwt mirage-flow ];

View file

@ -5,6 +5,8 @@ buildDunePackage {
inherit (mirage-console) version src;
duneVersion = "3";
propagatedBuildInputs = [
mirage-console
cstruct

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 = ''

View file

@ -6,10 +6,9 @@ buildDunePackage rec {
pname = "mirage-random-test";
version = "0.1.0";
minimumOCamlVersion = "4.06";
minimalOCamlVersion = "4.06";
# due to cstruct
useDune2 = true;
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";

View file

@ -4,6 +4,8 @@ buildDunePackage rec {
pname = "mirage-random";
version = "3.0.0";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/mirage-random/releases/download/v${version}/mirage-random-v${version}.tbz";
sha256 = "sha256-Sf4/KB1kMMwXI+yr5H/JuOmynYPNXwlk9dAA+gFAZs8=";

View file

@ -4,7 +4,7 @@ buildDunePackage rec {
pname = "randomconv";
version = "0.1.3";
useDune2 = true;
duneVersion = "3";
src = fetchurl {
url = "https://github.com/hannesm/randomconv/releases/download/v${version}/randomconv-v${version}.tbz";

View file

@ -9,10 +9,11 @@ buildDunePackage rec {
version = "6.0.1";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/ocaml-vchan/releases/download/v${version}/vchan-${version}.tbz";
sha256 = "sha256-5E7dITMVirYoxUkp8ZamRAolyhA6avXGJNAioxeBuV0=";
hash = "sha256-5E7dITMVirYoxUkp8ZamRAolyhA6avXGJNAioxeBuV0=";
};
propagatedBuildInputs = [

View file

@ -15,6 +15,7 @@ buildDunePackage rec {
version = "1.1";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/talex5/ocaml-wayland/releases/download/v${version}/wayland-${version}.tbz";

View file

@ -5,6 +5,8 @@ buildDunePackage {
inherit (xenstore_transport) src version;
duneVersion = "3";
buildInputs = [ xenstore_transport xenstore lwt ];
meta = xenstore_transport.meta // {

View file

@ -7,6 +7,7 @@ buildDunePackage rec {
version = "2.2.0";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/ocaml-xenstore/releases/download/v${version}/xenstore-${version}.tbz";

View file

@ -5,6 +5,7 @@ buildDunePackage rec {
version = "1.3.0";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchFromGitHub {
owner = "xapi-project";

View file

@ -22,8 +22,8 @@ ocamlPackages.buildDunePackage rec {
'';
minimalOCamlVersion = "4.12";
duneVersion = "3";
strictDeps = true;
nativeBuildInputs = [
pkg-config
];