ocamlPackages.pbrt: 2.4 → 4.1

ocamlPackages.ocaml-protoc: 2.4 → 4.1

ocamlPackages.pbrt_services: init at 4.1
ocamlPackages.pbrt_yojson: init at 4.1

(cherry picked from commit 67e55530a2)
This commit is contained in:
Vincent Laporte 2026-06-22 06:14:53 +02:00 committed by github-actions[bot]
commit c9fd2bba84
5 changed files with 52 additions and 6 deletions

View file

@ -1,7 +1,10 @@
{
lib,
ocaml,
buildDunePackage,
pbrt,
stdlib-shims,
pbrt_services,
}:
buildDunePackage {
@ -12,7 +15,8 @@ buildDunePackage {
buildInputs = [ stdlib-shims ];
propagatedBuildInputs = [ pbrt ];
doCheck = true;
doCheck = lib.versionAtLeast ocaml.version "5.1";
checkInputs = [ pbrt_services ];
meta = pbrt.meta // {
description = "Protobuf Compiler for OCaml";

View file

@ -6,15 +6,13 @@
buildDunePackage (finalAttrs: {
pname = "pbrt";
version = "2.4";
minimalOCamlVersion = "4.03";
version = "4.1";
src = fetchFromGitHub {
owner = "mransan";
repo = "ocaml-protoc";
rev = "${finalAttrs.version}.0";
hash = "sha256-EXugdcjALukSjB31zAVG9WiN6GMGXi2jlhHWaZ+p+uM=";
tag = "v${finalAttrs.version}";
hash = "sha256-UrgrzI5Pgi79C/OhqYxwSNfqsoBULUZ13XVaB71fGes=";
};
meta = {

View file

@ -0,0 +1,19 @@
{
buildDunePackage,
pbrt,
pbrt_yojson,
}:
buildDunePackage {
pname = "pbrt_services";
inherit (pbrt) version src;
propagatedBuildInputs = [
pbrt
pbrt_yojson
];
meta = pbrt.meta // {
description = "Runtime library for ocaml-protoc to support RPC services";
};
}

View file

@ -0,0 +1,21 @@
{
buildDunePackage,
pbrt,
base64,
yojson,
}:
buildDunePackage {
pname = "pbrt_yojson";
inherit (pbrt) version src;
propagatedBuildInputs = [
pbrt
base64
yojson
];
meta = pbrt.meta // {
description = "Runtime library for ocaml-protoc to support JSON encoding/decoding";
};
}

View file

@ -1713,6 +1713,10 @@ let
pbrt = callPackage ../development/ocaml-modules/pbrt { };
pbrt_services = callPackage ../development/ocaml-modules/pbrt/services.nix { };
pbrt_yojson = callPackage ../development/ocaml-modules/pbrt/yojson.nix { };
pcre2 = callPackage ../development/ocaml-modules/pcre2 {
inherit (pkgs) pcre2;
};