Files
nixpkgs/pkgs/development/ocaml-modules/arp/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1000 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 = {
description = "Address Resolution Protocol purely in OCaml";
homepage = "https://github.com/mirage/arp";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ sternenseemann ];
};
}