2020-11-03 02:18:15 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, alcotest, bos, dune-configurator }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "base64";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "3.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-base64/releases/download/v${version}/base64-v${version}.tbz";
|
|
|
|
sha256 = "0d0n5gd4nkdsz14jnxq13f1f7rzxmndg5xql039a8wfppmazd70w";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
buildInputs = [ bos dune-configurator ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/mirage/ocaml-base64";
|
|
|
|
description = "Base64 encoding and decoding in OCaml";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|