depot/third_party/nixpkgs/pkgs/development/ocaml-modules/emile/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

45 lines
816 B
Nix

{ lib
, buildDunePackage
, fetchurl
, ocaml
, angstrom
, ipaddr
, base64
, pecu
, uutf
, alcotest
, cmdliner
}:
buildDunePackage rec {
pname = "emile";
version = "1.1";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/dinosaure/emile/releases/download/v${version}/emile-v${version}.tbz";
hash = "sha256:0r1141makr0b900aby1gn0fccjv1qcqgyxib3bzq8fxmjqwjan8p";
};
buildInputs = [ cmdliner ];
propagatedBuildInputs = [
angstrom
ipaddr
base64
pecu
uutf
];
doCheck = true;
checkInputs = [ alcotest ];
meta = with lib; {
description = "Parser of email address according RFC822";
license = licenses.mit;
homepage = "https://github.com/dinosaure/emile";
maintainers = [ maintainers.sternenseemann ];
};
}