Merge pull request #255066 from vbgl/ocaml-ocaml-protoc-2.4

ocamlPackages.ocaml-protoc: 2.0.2 → 2.4
This commit is contained in:
Ulrik Strid 2023-09-14 14:28:54 +02:00 committed by GitHub
commit 67f7fb56e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 15 deletions

View file

@ -1,30 +1,19 @@
{ lib, fetchFromGitHub, buildDunePackage
, pbrt
, stdlib-shims
}:
buildDunePackage rec {
pname = "ocaml-protoc";
version = "2.0.2";
useDune2 = true;
minimumOCamlVersion = "4.02";
src = fetchFromGitHub {
owner = "mransan";
repo = "ocaml-protoc";
rev = version;
sha256 = "1vlnjqqpypmjhlyrxfzla79y4ilmc9ggz311giy6vmh4cyzl29h3";
};
inherit (pbrt) version src;
buildInputs = [ stdlib-shims ];
propagatedBuildInputs = [ pbrt ];
doCheck = true;
meta = with lib; {
homepage = "https://github.com/mransan/ocaml-protoc";
meta = pbrt.meta // {
description = "A Protobuf Compiler for OCaml";
license = licenses.mit;
maintainers = [ maintainers.vyorkin ];
};
}

View file

@ -0,0 +1,23 @@
{ lib, fetchFromGitHub, buildDunePackage }:
buildDunePackage rec {
pname = "pbrt";
version = "2.4";
minimalOCamlVersion = "4.03";
src = fetchFromGitHub {
owner = "mransan";
repo = "ocaml-protoc";
rev = "${version}.0";
hash = "sha256-EXugdcjALukSjB31zAVG9WiN6GMGXi2jlhHWaZ+p+uM=";
};
meta = with lib; {
homepage = "https://github.com/mransan/ocaml-protoc";
description = "Runtime library for Protobuf tooling";
license = licenses.mit;
maintainers = [ maintainers.vyorkin ];
};
}

View file

@ -1396,6 +1396,8 @@ let
pbkdf = callPackage ../development/ocaml-modules/pbkdf { };
pbrt = callPackage ../development/ocaml-modules/pbrt { };
pcap-format = callPackage ../development/ocaml-modules/pcap-format { };
pecu = callPackage ../development/ocaml-modules/pecu { };