Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchFromGitHub, 5 alcotest, 6 digestif, 7 fmt, 8 yojson, 9 ppxlib, 10 base64, 11 re, 12 ppx_deriving, 13}: 14 15buildDunePackage rec { 16 pname = "jwto"; 17 version = "0.4.0"; 18 19 duneVersion = "3"; 20 21 minimalOCamlVersion = "4.08"; 22 23 src = fetchFromGitHub { 24 owner = "sporto"; 25 repo = "jwto"; 26 rev = version; 27 hash = "sha256-TOWwNyrOqboCm8Y4mM6GgtmxGO3NmyDdAX7m8CifA7Y="; 28 }; 29 30 buildInputs = [ ppxlib ]; 31 32 propagatedBuildInputs = [ 33 digestif 34 fmt 35 yojson 36 base64 37 re 38 ppx_deriving 39 ]; 40 41 checkInputs = [ alcotest ]; 42 43 doCheck = true; 44 45 meta = { 46 homepage = "https://github.com/sporto/jwto"; 47 description = "JSON Web Tokens (JWT) for OCaml"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ 50 Zimmi48 51 jtcoolen 52 ]; 53 }; 54}