2020-12-29 23:44:46 +01:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
|
|
|
, cstruct, ipaddr, macaddr, logs, lwt, duration
|
|
|
|
, mirage-time, mirage-protocols, mirage-profile
|
|
|
|
, alcotest, ethernet, fmt, mirage-vnetif, mirage-random
|
|
|
|
, mirage-random-test, mirage-clock-unix, mirage-time-unix
|
|
|
|
, bisect_ppx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "arp";
|
2022-01-23 21:24:16 +01:00
|
|
|
version = "3.0.0";
|
2020-12-29 23:44:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
2022-01-23 21:24:16 +01:00
|
|
|
sha256 = "1x3l8v96ywc3wrcwbf0j04b8agap4fif0fz6ki2ndzx57yqcjszn";
|
2020-12-29 23:44:46 +01:00
|
|
|
};
|
|
|
|
|
2021-06-06 03:07:07 +02:00
|
|
|
minimumOCamlVersion = "4.06";
|
|
|
|
useDune2 = true;
|
|
|
|
|
2020-12-29 23:44:46 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bisect_ppx
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
2021-06-06 03:07:07 +02:00
|
|
|
duration
|
2020-12-29 23:44:46 +01:00
|
|
|
ipaddr
|
|
|
|
logs
|
|
|
|
lwt
|
2021-06-06 03:07:07 +02:00
|
|
|
macaddr
|
2020-12-29 23:44:46 +01:00
|
|
|
mirage-profile
|
2021-06-06 03:07:07 +02:00
|
|
|
mirage-protocols
|
|
|
|
mirage-time
|
2020-12-29 23:44:46 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [
|
|
|
|
alcotest
|
2021-06-06 03:07:07 +02:00
|
|
|
ethernet
|
|
|
|
mirage-clock-unix
|
2020-12-29 23:44:46 +01:00
|
|
|
mirage-profile
|
|
|
|
mirage-random
|
|
|
|
mirage-random-test
|
|
|
|
mirage-time-unix
|
2021-06-06 03:07:07 +02:00
|
|
|
mirage-vnetif
|
2020-12-29 23:44:46 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Address Resolution Protocol purely in OCaml";
|
|
|
|
homepage = "https://github.com/mirage/arp";
|
2021-06-06 03:07:07 +02:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
2020-12-29 23:44:46 +01:00
|
|
|
};
|
|
|
|
}
|