2021-02-12 16:36:40 -08:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml, alcotest, bos, rresult }:
|
2015-03-03 02:01:55 -08:00
|
|
|
|
2020-04-13 21:56:28 -07:00
|
|
|
buildDunePackage rec {
|
2019-04-06 06:17:37 -07:00
|
|
|
pname = "base64";
|
2021-02-12 16:36:40 -08:00
|
|
|
version = "3.5.0";
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.03";
|
2015-03-03 02:01:55 -08:00
|
|
|
|
2020-10-28 22:24:55 -07:00
|
|
|
useDune2 = true;
|
2015-03-03 02:01:55 -08:00
|
|
|
|
2020-10-28 22:24:55 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-base64/releases/download/v${version}/base64-v${version}.tbz";
|
2021-02-12 16:36:40 -08:00
|
|
|
sha256 = "sha256-WJ3pwAV46/54QZismBjTWGxHSyMWts0+HEbMsfYq46Q=";
|
2020-10-28 22:24:55 -07:00
|
|
|
};
|
2020-04-13 21:56:28 -07:00
|
|
|
|
2021-02-12 16:36:40 -08:00
|
|
|
# otherwise fmt breaks evaluation
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
|
|
|
checkInputs = [ alcotest bos rresult ];
|
2015-03-03 02:01:55 -08:00
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/mirage/ocaml-base64";
|
2015-03-03 02:01:55 -08:00
|
|
|
description = "Base64 encoding and decoding in OCaml";
|
2019-04-06 06:17:37 -07:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-03-03 02:01:55 -08:00
|
|
|
};
|
|
|
|
}
|