2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, ocaml
|
|
|
|
, angstrom
|
|
|
|
, ipaddr
|
|
|
|
, base64
|
|
|
|
, pecu
|
|
|
|
, uutf
|
|
|
|
, alcotest
|
|
|
|
, cmdliner
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "emile";
|
|
|
|
version = "1.1";
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
duneVersion = "3";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dinosaure/emile/releases/download/v${version}/emile-v${version}.tbz";
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256:0r1141makr0b900aby1gn0fccjv1qcqgyxib3bzq8fxmjqwjan8p";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmdliner ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
angstrom
|
|
|
|
ipaddr
|
|
|
|
base64
|
|
|
|
pecu
|
|
|
|
uutf
|
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Parser of email address according RFC822";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/dinosaure/emile";
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|