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