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