2020-11-20 05:40:50 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage
|
|
|
|
, stdlib-shims
|
|
|
|
}:
|
2019-09-20 06:53:30 +01:00
|
|
|
|
2020-11-20 05:40:50 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ocaml-protoc";
|
|
|
|
version = "2.0.2";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2019-09-20 06:53:30 +01:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mransan";
|
|
|
|
repo = "ocaml-protoc";
|
2020-11-20 05:40:50 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1vlnjqqpypmjhlyrxfzla79y4ilmc9ggz311giy6vmh4cyzl29h3";
|
2019-09-20 06:53:30 +01:00
|
|
|
};
|
|
|
|
|
2020-11-20 05:40:50 +00:00
|
|
|
buildInputs = [ stdlib-shims ];
|
2019-09-20 06:53:30 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2020-11-20 05:40:50 +00:00
|
|
|
meta = with lib; {
|
2019-09-20 06:53:30 +01:00
|
|
|
homepage = "https://github.com/mransan/ocaml-protoc";
|
|
|
|
description = "A Protobuf Compiler for OCaml";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vyorkin ];
|
|
|
|
};
|
|
|
|
}
|