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