about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/pecu/default.nix
blob: 66d9e56c6dc36572ce4065957dc920cce4263a18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildDunePackage, ocaml, fetchurl, fmt, alcotest, crowbar, astring }:

buildDunePackage rec {
  pname = "pecu";
  version = "0.7";

  minimalOCamlVersion = "4.03";

  src = fetchurl {
    url = "https://github.com/mirage/pecu/releases/download/v${version}/pecu-${version}.tbz";
    hash = "sha256-rXR3tbFkKNM8MkQAZ2hJU9lO+qQ/qvYghXkYus6f13g=";
  };

  # crowbar availability
  doCheck = lib.versionAtLeast ocaml.version "4.08";
  checkInputs = [ fmt alcotest crowbar astring ];

  meta = with lib; {
    description = "Encoder/Decoder of Quoted-Printable (RFC2045 & RFC2047)";
    license = licenses.mit;
    homepage = "https://github.com/mirage/pecu";
    maintainers = [ maintainers.sternenseemann ];
  };
}