2021-10-28 06:52:43 +00:00
|
|
|
{ alcotest
|
|
|
|
, buildDunePackage
|
2022-09-09 14:08:57 +00:00
|
|
|
, ocaml
|
2021-10-28 06:52:43 +00:00
|
|
|
, fetchzip
|
2021-12-06 16:07:01 +00:00
|
|
|
, gcc
|
2021-10-28 06:52:43 +00:00
|
|
|
, fmt
|
|
|
|
, lib
|
|
|
|
, uutf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "yuscii";
|
|
|
|
version = "0.3.0";
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2023-04-12 12:48:02 +00:00
|
|
|
duneVersion = "3";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mirage/yuscii/releases/download/v${version}/yuscii-v${version}.tbz";
|
|
|
|
sha256 = "0idywlkw0fbakrxv65swnr5bj7f2vns9kpay7q03gzlv82p670hy";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
gcc
|
2023-02-09 11:40:11 +00:00
|
|
|
];
|
|
|
|
checkInputs = [
|
2021-10-28 06:52:43 +00:00
|
|
|
alcotest
|
|
|
|
fmt
|
|
|
|
uutf
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple mapper between UTF-7 to Unicode according RFC2152";
|
2021-10-28 06:52:43 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://github.com/mirage/yuscii";
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
}
|