Files
nixpkgs/pkgs/development/ocaml-modules/arp/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1002 B
Nix

{
lib,
stdenv,
buildDunePackage,
fetchurl,
cstruct,
duration,
ethernet,
ipaddr,
logs,
lwt,
macaddr,
mirage-sleep,
alcotest,
bos,
mirage-vnetif,
}:
buildDunePackage rec {
pname = "arp";
version = "4.0.0";
src = fetchurl {
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
hash = "sha256-C2Bh/2NwZqCJEidCnkhwRMoW3AsbQtvwdFh9IiJkDaU=";
};
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
cstruct
duration
ethernet
ipaddr
logs
lwt
macaddr
mirage-sleep
];
## NOTE: As of 18 april 2023 and ARP version 3.0.0, tests fail on Darwin.
doCheck = !stdenv.hostPlatform.isDarwin;
checkInputs = [
alcotest
bos
mirage-vnetif
];
meta = with lib; {
description = "Address Resolution Protocol purely in OCaml";
homepage = "https://github.com/mirage/arp";
license = licenses.isc;
maintainers = with maintainers; [ sternenseemann ];
};
}