mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
ocamlPackages.ppx_deriving_protobuf: disable for OCaml ≥ 4.11
This commit is contained in:
parent
2a84a4981d
commit
2044e44cf4
@ -1,6 +1,10 @@
|
||||
{ stdenv, fetchFromGitHub, buildDunePackage, cppo, ppx_tools, ppx_deriving
|
||||
{ lib, fetchFromGitHub, buildDunePackage, ocaml, cppo, ppx_tools, ppx_deriving
|
||||
, ppxfind }:
|
||||
|
||||
if lib.versionAtLeast ocaml.version "4.11"
|
||||
then throw "ppx_deriving_protobuf is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "ppx_deriving_protobuf";
|
||||
version = "2.7";
|
||||
@ -14,7 +18,7 @@ buildDunePackage rec {
|
||||
|
||||
buildInputs = [ cppo ppx_tools ppxfind ppx_deriving ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ocaml-ppx/ppx_deriving_protobuf";
|
||||
description = "A Protocol Buffers codec generator for OCaml";
|
||||
license = licenses.mit;
|
||||
|
Loading…
Reference in New Issue
Block a user