ocamlPackages.tcpip: 8.2.0 → 9.0.0; ocamlPackages.arp: 3.1.1 → 4.0.0 (#385499)

Changed files
+80 -32
pkgs
development
ocaml-modules
arp
dns
mirage-mtime
mirage-sleep
tcpip
top-level
+6 -19
pkgs/development/ocaml-modules/arp/default.nix
···
logs,
lwt,
macaddr,
-
mirage-time,
+
mirage-sleep,
alcotest,
-
mirage-clock-unix,
-
mirage-flow,
-
mirage-random,
-
mirage-random-test,
-
mirage-time-unix,
+
bos,
mirage-vnetif,
-
bisect_ppx,
}:
buildDunePackage rec {
pname = "arp";
-
version = "3.1.1";
+
version = "4.0.0";
src = fetchurl {
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
-
hash = "sha256-6jPFiene6jAPtivCugtVfP3+6k9A5gBoWzpoxoaPBvE=";
+
hash = "sha256-C2Bh/2NwZqCJEidCnkhwRMoW3AsbQtvwdFh9IiJkDaU=";
};
minimalOCamlVersion = "4.08";
-
nativeBuildInputs = [
-
bisect_ppx
-
];
-
propagatedBuildInputs = [
cstruct
duration
···
logs
lwt
macaddr
-
mirage-time
+
mirage-sleep
];
## NOTE: As of 18 april 2023 and ARP version 3.0.0, tests fail on Darwin.
doCheck = !stdenv.hostPlatform.isDarwin;
checkInputs = [
alcotest
-
mirage-clock-unix
-
mirage-flow
-
mirage-random
-
mirage-random-test
-
mirage-time-unix
+
bos
mirage-vnetif
];
+2
pkgs/development/ocaml-modules/dns/resolver.nix
···
tcpip,
tls,
tls-mirage,
+
mirage-crypto-rng-mirage,
dnssec,
alcotest,
}:
···
tcpip
tls
tls-mirage
+
mirage-crypto-rng-mirage
];
doCheck = true;
+29
pkgs/development/ocaml-modules/mirage-mtime/default.nix
···
+
{
+
lib,
+
fetchurl,
+
buildDunePackage,
+
mtime,
+
version ? "5.0.0",
+
}:
+
+
buildDunePackage {
+
pname = "mirage-mtime";
+
+
inherit version;
+
+
src = fetchurl {
+
url = "https://github.com/mirage/mirage-mtime/releases/download/v${version}/mirage-mtime-${version}.tbz";
+
hash = "sha256-IwdaAyZyj8gfRPxQP9SOwb28AbtVy9PY7qcr0Pns9GU=";
+
};
+
+
propagatedBuildInputs = [
+
mtime
+
];
+
+
meta = {
+
description = "Monotonic time for MirageOS";
+
license = lib.licenses.isc;
+
maintainers = [ lib.maintainers.vbgl ];
+
homepage = "https://github.com/mirage/mirage-mtime";
+
};
+
}
+31
pkgs/development/ocaml-modules/mirage-sleep/default.nix
···
+
{
+
lib,
+
buildDunePackage,
+
fetchurl,
+
lwt,
+
duration,
+
version ? "4.0.0",
+
}:
+
+
buildDunePackage {
+
inherit version;
+
pname = "mirage-sleep";
+
+
src = fetchurl {
+
url = "https://github.com/mirage/mirage-sleep/releases/download/v${version}/mirage-sleep-${version}.tbz";
+
hash = "sha256-J7cw7sE3EE3BIhSdwD1KV3VeXjEqviVmys3LgGhEE/A=";
+
};
+
+
propagatedBuildInputs = [
+
duration
+
lwt
+
];
+
+
meta = {
+
description = "Sleep operations for MirageOS";
+
homepage = "https://github.com/mirage/mirage-sleep";
+
changelog = "https://raw.githubusercontent.com/mirage/mirage-sleep/refs/tags/v${version}/CHANGES.md";
+
license = lib.licenses.isc;
+
maintainers = [ lib.maintainers.vbgl ];
+
};
+
}
+8 -13
pkgs/development/ocaml-modules/tcpip/default.nix
···
cstruct,
cstruct-lwt,
mirage-net,
-
mirage-clock,
-
mirage-crypto-rng-mirage,
-
mirage-time,
+
mirage-mtime,
+
mirage-crypto-rng,
+
mirage-sleep,
macaddr,
macaddr-cstruct,
fmt,
···
mirage-flow,
mirage-vnetif,
pcap-format,
-
mirage-clock-unix,
arp,
ipaddr-cstruct,
-
mirage-crypto-rng,
lru,
metrics,
withFreestanding ? false,
···
buildDunePackage rec {
pname = "tcpip";
-
version = "8.2.0";
+
version = "9.0.0";
src = fetchurl {
url = "https://github.com/mirage/mirage-${pname}/releases/download/v${version}/${pname}-${version}.tbz";
-
hash = "sha256-kW5oirqJdnbERNuBKfSWOtc5+NG+Yx2eAJxiKLS31u0=";
+
hash = "sha256-WTd+01kIDY2pSuyRR0pTO62VXBK+eYJ77IU8y0ltZZo=";
};
nativeBuildInputs = [
···
cstruct
cstruct-lwt
mirage-net
-
mirage-clock
-
mirage-crypto-rng-mirage
-
mirage-time
+
mirage-mtime
+
mirage-crypto-rng
+
mirage-sleep
ipaddr-cstruct
macaddr
macaddr-cstruct
···
doCheck = true;
checkInputs = [
alcotest
-
mirage-crypto-rng
-
mirage-flow
mirage-vnetif
pcap-format
-
mirage-clock-unix
];
__darwinAllowLocalNetworking = true;
+4
pkgs/top-level/ocaml-packages.nix
···
mirage-logs = callPackage ../development/ocaml-modules/mirage-logs { };
+
mirage-mtime = callPackage ../development/ocaml-modules/mirage-mtime { };
+
mirage-nat = callPackage ../development/ocaml-modules/mirage-nat { };
mirage-net = callPackage ../development/ocaml-modules/mirage-net { };
···
mirage-random-test = callPackage ../development/ocaml-modules/mirage-random-test { };
mirage-runtime = callPackage ../development/ocaml-modules/mirage/runtime.nix { };
+
+
mirage-sleep = callPackage ../development/ocaml-modules/mirage-sleep { };
mirage-time = callPackage ../development/ocaml-modules/mirage-time { };