2021-07-27 11:34:13 +00:00
|
|
|
{ lib, buildDunePackage, ocaml, fetchurl, fmt, alcotest, crowbar, astring }:
|
2021-01-15 11:12:14 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "pecu";
|
2021-07-27 11:34:13 +00:00
|
|
|
version = "0.6";
|
2021-01-15 11:12:14 +00:00
|
|
|
|
2023-04-10 12:15:05 +00:00
|
|
|
duneVersion = "3";
|
2021-01-15 11:12:14 +00:00
|
|
|
|
2023-04-10 12:15:05 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2021-01-15 11:12:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-27 11:34:13 +00:00
|
|
|
url = "https://github.com/mirage/pecu/releases/download/v${version}/pecu-v${version}.tbz";
|
|
|
|
sha256 = "a9d2b7da444c83b20f879f6c3b7fc911d08ac1e6245ad7105437504f9394e5c7";
|
2021-01-15 11:12:14 +00:00
|
|
|
};
|
|
|
|
|
2021-07-27 11:34:13 +00:00
|
|
|
# crowbar availability
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ fmt alcotest crowbar astring ];
|
2021-01-15 11:12:14 +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 ];
|
|
|
|
};
|
|
|
|
}
|