2022-12-27 04:11:50 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml, findlib, 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";
|
2023-02-27 12:14:03 +00:00
|
|
|
version = "3.5.1";
|
2021-02-13 00:36:40 +00:00
|
|
|
|
2022-12-27 04:11:50 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2023-02-27 12:14:03 +00:00
|
|
|
duneVersion = "3";
|
2015-03-03 10:01:55 +00:00
|
|
|
|
2020-10-29 05:24:55 +00:00
|
|
|
src = fetchurl {
|
2023-02-27 12:14:03 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-base64/releases/download/v${version}/base64-${version}.tbz";
|
|
|
|
hash = "sha256-2P7apZvRL+rnrMCLWSjdR4qsUj9MqNJARw0lAGUcZe0=";
|
2020-10-29 05:24:55 +00:00
|
|
|
};
|
2020-04-14 04:56:28 +00:00
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
nativeBuildInputs = [ findlib ];
|
2022-12-27 04:11:50 +00:00
|
|
|
|
2021-02-13 00:36:40 +00:00
|
|
|
# otherwise fmt breaks evaluation
|
2022-08-23 06:04:50 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2022-03-01 15:42:22 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|