2019-04-06 14:17:37 +01:00
|
|
|
{ lib, fetchzip, buildDunePackage, alcotest, bos }:
|
2015-03-03 10:01:55 +00:00
|
|
|
|
2019-04-06 14:17:37 +01:00
|
|
|
let version = "3.2.0"; in
|
2015-03-03 10:01:55 +00:00
|
|
|
|
2019-04-06 14:17:37 +01:00
|
|
|
buildDunePackage {
|
|
|
|
pname = "base64";
|
|
|
|
inherit version;
|
2015-03-03 10:01:55 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mirage/ocaml-base64/archive/v${version}.tar.gz";
|
2019-04-06 14:17:37 +01:00
|
|
|
sha256 = "1ilw3zj0w6cq7i4pvr8m2kv5l5f2y9aldmv72drlwwns013b1gwy";
|
2015-03-03 10:01:55 +00:00
|
|
|
};
|
|
|
|
|
2019-04-06 14:17:37 +01:00
|
|
|
minimumOCamlVersion = "4.03";
|
2015-03-03 10:01:55 +00:00
|
|
|
|
2019-04-06 14:17:37 +01:00
|
|
|
buildInputs = [ alcotest bos ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2015-03-03 10:01:55 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01: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 14:17:37 +01:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-03-03 10:01:55 +00:00
|
|
|
};
|
|
|
|
}
|