Skip to content

Commit

Permalink
Merge pull request #255066 from vbgl/ocaml-ocaml-protoc-2.4
Browse files Browse the repository at this point in the history
ocamlPackages.ocaml-protoc: 2.0.2 → 2.4
  • Loading branch information
ulrikstrid authored Sep 14, 2023
2 parents 822db74 + 3807ab2 commit 67f7fb5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 15 deletions.
19 changes: 4 additions & 15 deletions pkgs/development/ocaml-modules/ocaml-protoc/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
23 changes: 23 additions & 0 deletions pkgs/development/ocaml-modules/pbrt/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 67f7fb5

Please sign in to comment.