-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2de08bd
commit 3af1968
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
pkgs/development/ocaml-modules/ocaml-protoc-plugin/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ lib | ||
, fetchFromGitHub | ||
, buildDunePackage | ||
, pkg-config | ||
, protobuf | ||
, zarith | ||
, ppx_deriving | ||
, ppx_deriving_yojson | ||
, re | ||
, dune-site | ||
, ppx_expect | ||
}: | ||
|
||
buildDunePackage rec { | ||
pname = "ocaml-protoc-plugin"; | ||
version = "4.3.1"; | ||
|
||
duneVersion = "3"; | ||
|
||
minimalOcamlVersion = "4.08"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "issuu"; | ||
repo = "ocaml-protoc-plugin"; | ||
rev = version; | ||
hash = "sha256-KFd43Ukz5gMeM3ik2VlfaIPwcZe9yaxk9VcQIrauUGU="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
pkg-config | ||
protobuf | ||
]; | ||
buildInputs = [ | ||
zarith | ||
ppx_deriving | ||
ppx_deriving_yojson | ||
re | ||
dune-site | ||
ppx_expect | ||
protobuf | ||
]; | ||
doCheck = true; | ||
nativeCheckInputs = [ protobuf ]; | ||
|
||
meta = { | ||
description = "Maps google protobuf compiler to Ocaml types."; | ||
homepage = | ||
"https://github.com/issuu/ocaml-protoc-plugin"; | ||
license = lib.licenses.asl20; | ||
longDescription = '' | ||
The goal of Ocaml protoc plugin is to create an | ||
up to date plugin for the google protobuf compiler | ||
(protoc) to generate Ocaml types and serialization | ||
and de-serialization function from a .proto file. | ||
''; | ||
maintainers = [ lib.maintainers.GirardR1006 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters