1{ lib 2, fetchFromGitLab 3, buildDunePackage 4, ppx_hash 5, either 6, ezjsonm 7, zarith 8, zarith_stubs_js ? null 9, hex 10, json-data-encoding 11, json-data-encoding-bson 12, alcotest 13, crowbar 14, ppx_expect 15}: 16 17buildDunePackage rec { 18 pname = "data-encoding"; 19 version = "0.7.1"; 20 21 duneVersion = "3"; 22 minimalOCamlVersion = "4.10"; 23 24 src = fetchFromGitLab { 25 owner = "nomadic-labs"; 26 repo = "data-encoding"; 27 rev = "v${version}"; 28 hash = "sha256-V3XiCCtoU+srOI+KVSJshtaSJLBJ4m4o10GpBfdYKCU="; 29 }; 30 31 propagatedBuildInputs = [ 32 either 33 ezjsonm 34 ppx_hash 35 zarith 36 zarith_stubs_js 37 hex 38 json-data-encoding 39 json-data-encoding-bson 40 ]; 41 42 checkInputs = [ 43 alcotest 44 crowbar 45 ppx_expect 46 ]; 47 48 doCheck = true; 49 50 meta = { 51 homepage = "https://gitlab.com/nomadic-labs/data-encoding"; 52 description = "Library of JSON and binary encoding combinators"; 53 license = lib.licenses.mit; 54 maintainers = [ lib.maintainers.ulrikstrid ]; 55 }; 56}