depot/third_party/nixpkgs/pkgs/development/ocaml-modules/emile/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

47 lines
1,001 B
Nix

{ lib
, buildDunePackage
, fetchurl
, ocaml
, angstrom
, ipaddr
, base64
, pecu
, uutf
, alcotest
, cmdliner
}:
buildDunePackage rec {
pname = "emile";
version = "1.1";
useDune2 = true;
src = fetchurl {
url = "https://github.com/dinosaure/emile/releases/download/v${version}/emile-v${version}.tbz";
sha256 = "0r1141makr0b900aby1gn0fccjv1qcqgyxib3bzq8fxmjqwjan8p";
};
buildInputs = [ cmdliner ];
propagatedBuildInputs = [
angstrom
ipaddr
base64
pecu
uutf
];
# technically emile is available for ocaml >= 4.03, but alcotest
# and angstrom (fmt) are only available for >= 4.08. Disabling
# tests for < 4.08 at least improves the error message
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ alcotest ];
meta = with lib; {
description = "Parser of email address according RFC822";
license = licenses.mit;
homepage = "https://github.com/dinosaure/emile";
maintainers = [ maintainers.sternenseemann ];
};
}