Skip to content

Commit

Permalink
ocamlPackages.happy-eyeballs: 0.1.2 -> 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrikstrid authored and vbgl committed Sep 21, 2022
1 parent 4aff77f commit 666ed16
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 6 deletions.
8 changes: 5 additions & 3 deletions pkgs/development/ocaml-modules/happy-eyeballs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@

buildDunePackage rec {
pname = "happy-eyeballs";
version = "0.1.3";
version = "0.3.0";

minimalOCamlVersion = "4.08";

src = fetchurl {
url = "https://github.com/roburio/happy-eyeballs/releases/download/v${version}/happy-eyeballs-${version}.tbz";
sha256 = "sha256:0ns1bxcmx0rkq4am6vl2aargdzkfhria8sfmgnh8dgzvvj93cc1c";
sha256 = "17mnid1gvq1ml1zmqzn0m6jmrqw4kqdrjqrdsrphl5kxxyhs03m6";
};

strictDeps = true;

propagatedBuildInputs = [
domain-name
duration
Expand All @@ -25,6 +27,6 @@ buildDunePackage rec {
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 ];
maintainers = with lib.maintainers; [ vbgl ulrikstrid ];
};
}
23 changes: 21 additions & 2 deletions pkgs/development/ocaml-modules/happy-eyeballs/lwt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,32 @@
, happy-eyeballs
, cmdliner
, dns-client
, duration
, domain-name
, ipaddr
, fmt
, logs
, lwt
, mtime
}:

buildDunePackage {
pname = "happy-eyeballs-lwt";

inherit (happy-eyeballs) src version;

buildInputs = [ cmdliner ];
minimalOCamlVersion = "4.08";

strictDeps = true;

buildInputs = [
cmdliner
duration
domain-name
ipaddr
fmt
mtime
];

propagatedBuildInputs = [
dns-client
Expand All @@ -19,8 +36,10 @@ buildDunePackage {
lwt
];

doCheck = true;

meta = happy-eyeballs.meta // {
mainProgram = "happy_eyeballs_client";
description = "Connecting to a remote host via IP version 4 or 6 using Lwt_unix";
};

}
25 changes: 24 additions & 1 deletion pkgs/development/ocaml-modules/happy-eyeballs/mirage.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
{ buildDunePackage
, happy-eyeballs
, duration
, dns-client
, domain-name
, ipaddr
, fmt
, logs
, lwt
, mirage-clock
, mirage-random
, mirage-time
, tcpip
}:

buildDunePackage {
pname = "happy-eyeballs-mirage";

inherit (happy-eyeballs) src version;

minimalOCamlVersion = "4.08";

strictDeps = true;

buildInputs = [
duration
ipaddr
domain-name
fmt
mirage-clock
mirage-random
mirage-time
];

propagatedBuildInputs = [
dns-client
happy-eyeballs
Expand All @@ -18,8 +40,9 @@ buildDunePackage {
tcpip
];

doCheck = true;

meta = happy-eyeballs.meta // {
description = "Connecting to a remote host via IP version 4 or 6 using Mirage";
};

}

0 comments on commit 666ed16

Please sign in to comment.