2021-08-05 21:33:18 +00:00
|
|
|
{ lib, buildDunePackage, ocaml, fetchurl, fmt, alcotest, crowbar, astring }:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "pecu";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.7";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-15 15:35:15 +00:00
|
|
|
url = "https://github.com/mirage/pecu/releases/download/v${version}/pecu-${version}.tbz";
|
|
|
|
hash = "sha256-rXR3tbFkKNM8MkQAZ2hJU9lO+qQ/qvYghXkYus6f13g=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
# crowbar availability
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ fmt alcotest crowbar astring ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Encoder/Decoder of Quoted-Printable (RFC2045 & RFC2047)";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/mirage/pecu";
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|