1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 ocaml, 6 findlib, 7 alcotest, 8 bos, 9 rresult, 10}: 11 12buildDunePackage rec { 13 pname = "base64"; 14 version = "3.5.1"; 15 16 minimalOCamlVersion = "4.03"; 17 duneVersion = "3"; 18 19 src = fetchurl { 20 url = "https://github.com/mirage/ocaml-base64/releases/download/v${version}/base64-${version}.tbz"; 21 hash = "sha256-2P7apZvRL+rnrMCLWSjdR4qsUj9MqNJARw0lAGUcZe0="; 22 }; 23 24 nativeBuildInputs = [ findlib ]; 25 26 # otherwise fmt breaks evaluation 27 doCheck = lib.versionAtLeast ocaml.version "4.08"; 28 checkInputs = [ 29 alcotest 30 bos 31 rresult 32 ]; 33 34 meta = { 35 homepage = "https://github.com/mirage/ocaml-base64"; 36 description = "Base64 encoding and decoding in OCaml"; 37 license = lib.licenses.isc; 38 maintainers = with lib.maintainers; [ vbgl ]; 39 }; 40}