2023-01-11 07:51:40 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml, findlib, alcotest, bos, rresult }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "base64";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "3.5.1";
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2023-03-04 12:14:45 +00:00
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchurl {
|
2023-03-04 12:14:45 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-base64/releases/download/v${version}/base64-${version}.tbz";
|
|
|
|
hash = "sha256-2P7apZvRL+rnrMCLWSjdR4qsUj9MqNJARw0lAGUcZe0=";
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [ findlib ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
# otherwise fmt breaks evaluation
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest bos rresult ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/mirage/ocaml-base64";
|
|
|
|
description = "Base64 encoding and decoding in OCaml";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|