mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
4c3d4ca14e
commit
c9fd2bba84
5 changed files with 52 additions and 6 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
19
pkgs/development/ocaml-modules/pbrt/services.nix
Normal file
19
pkgs/development/ocaml-modules/pbrt/services.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
21
pkgs/development/ocaml-modules/pbrt/yojson.nix
Normal file
21
pkgs/development/ocaml-modules/pbrt/yojson.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue