3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.jwto: init at 0.3.0 (#95173)

This commit is contained in:
Julien Coolen 2020-08-11 14:33:59 +02:00 committed by Vincent Laporte
parent d4da9bbbc9
commit 9d5733098b
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib, buildDunePackage, fetchFromGitHub, alcotest, cryptokit, fmt, yojson
, base64, re, ppx_deriving }:
buildDunePackage rec {
pname = "jwto";
version = "0.3.0";
minimumOCamlVersion = "4.05";
src = fetchFromGitHub {
owner = "sporto";
repo = "jwto";
rev = version;
sha256 = "1p799zk8j9c0002xzi2x7ndj1bzqf14744ampcqndrjnsi7mq71s";
};
propagatedBuildInputs =
[ cryptokit fmt yojson base64 re ppx_deriving ];
checkInputs = [ alcotest ];
doCheck = true;
meta = {
homepage = "https://github.com/sporto/jwto";
description = "JSON Web Tokens (JWT) for OCaml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Zimmi48 jtcoolen ];
};
}

View file

@ -431,6 +431,8 @@ let
jsonm = callPackage ../development/ocaml-modules/jsonm { };
jwto = callPackage ../development/ocaml-modules/jwto { };
kafka = callPackage ../development/ocaml-modules/kafka { };
ke = callPackage ../development/ocaml-modules/ke { };