Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 35 lines 762 B view raw
1{ lib, buildDunePackage, fetchFromGitHub, alcotest, digestif, fmt, yojson 2, ppxlib 3, base64, re, ppx_deriving }: 4 5buildDunePackage rec { 6 pname = "jwto"; 7 version = "0.4.0"; 8 9 duneVersion = "3"; 10 11 minimalOCamlVersion = "4.08"; 12 13 src = fetchFromGitHub { 14 owner = "sporto"; 15 repo = "jwto"; 16 rev = version; 17 hash = "sha256-TOWwNyrOqboCm8Y4mM6GgtmxGO3NmyDdAX7m8CifA7Y="; 18 }; 19 20 buildInputs = [ ppxlib ]; 21 22 propagatedBuildInputs = 23 [ digestif fmt yojson base64 re ppx_deriving ]; 24 25 checkInputs = [ alcotest ]; 26 27 doCheck = true; 28 29 meta = { 30 homepage = "https://github.com/sporto/jwto"; 31 description = "JSON Web Tokens (JWT) for OCaml"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ Zimmi48 jtcoolen ]; 34 }; 35}