2023-03-08 16:32:21 +00:00
|
|
|
{ lib
|
2023-04-29 16:46:19 +00:00
|
|
|
, stdenv
|
2023-03-08 16:32:21 +00:00
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, cstruct
|
|
|
|
, duration
|
|
|
|
, ethernet
|
|
|
|
, ipaddr
|
|
|
|
, logs
|
|
|
|
, lwt
|
|
|
|
, macaddr
|
|
|
|
, mirage-time
|
|
|
|
, alcotest
|
|
|
|
, mirage-clock-unix
|
|
|
|
, mirage-flow
|
|
|
|
, mirage-random
|
|
|
|
, mirage-random-test
|
|
|
|
, mirage-time-unix
|
|
|
|
, mirage-vnetif
|
2021-01-05 17:05:55 +00:00
|
|
|
, bisect_ppx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "arp";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.1.1";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-6jPFiene6jAPtivCugtVfP3+6k9A5gBoWzpoxoaPBvE=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bisect_ppx
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
2021-06-28 23:13:55 +00:00
|
|
|
duration
|
2022-10-30 15:09:59 +00:00
|
|
|
ethernet
|
2021-01-05 17:05:55 +00:00
|
|
|
ipaddr
|
|
|
|
logs
|
|
|
|
lwt
|
2021-06-28 23:13:55 +00:00
|
|
|
macaddr
|
|
|
|
mirage-time
|
2021-01-05 17:05:55 +00:00
|
|
|
];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
## NOTE: As of 18 april 2023 and ARP version 3.0.0, tests fail on Darwin.
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = ! stdenv.hostPlatform.isDarwin;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-01-05 17:05:55 +00:00
|
|
|
alcotest
|
2021-06-28 23:13:55 +00:00
|
|
|
mirage-clock-unix
|
2023-03-08 16:32:21 +00:00
|
|
|
mirage-flow
|
2021-01-05 17:05:55 +00:00
|
|
|
mirage-random
|
|
|
|
mirage-random-test
|
|
|
|
mirage-time-unix
|
2021-06-28 23:13:55 +00:00
|
|
|
mirage-vnetif
|
2021-01-05 17:05:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Address Resolution Protocol purely in OCaml";
|
|
|
|
homepage = "https://github.com/mirage/arp";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
}
|