diff --git a/pkgs/development/ocaml-modules/happy-eyeballs/default.nix b/pkgs/development/ocaml-modules/happy-eyeballs/default.nix new file mode 100644 index 000000000000..dcd6c433d77d --- /dev/null +++ b/pkgs/development/ocaml-modules/happy-eyeballs/default.nix @@ -0,0 +1,30 @@ +{ lib, buildDunePackage, fetchurl +, domain-name, duration, fmt, ipaddr, logs +}: + +buildDunePackage rec { + pname = "happy-eyeballs"; + version = "0.1.3"; + + minimalOCamlVersion = "4.08"; + + src = fetchurl { + url = "https://github.com/roburio/happy-eyeballs/releases/download/v${version}/happy-eyeballs-${version}.tbz"; + sha256 = "sha256:0ns1bxcmx0rkq4am6vl2aargdzkfhria8sfmgnh8dgzvvj93cc1c"; + }; + + propagatedBuildInputs = [ + domain-name + duration + fmt + ipaddr + logs + ]; + + meta = { + description = "Connecting to a remote host via IP version 4 or 6"; + homepage = "https://github.com/roburio/happy-eyeballs"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index fa2b83b0a47a..bc315c0675b7 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -505,6 +505,8 @@ let hacl-star = callPackage ../development/ocaml-modules/hacl-star { }; hacl-star-raw = callPackage ../development/ocaml-modules/hacl-star/raw.nix { }; + happy-eyeballs = callPackage ../development/ocaml-modules/happy-eyeballs { }; + hashcons = callPackage ../development/ocaml-modules/hashcons { }; herelib = callPackage ../development/ocaml-modules/herelib { };