dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{ lib
|
|
, buildDunePackage
|
|
, fetchurl
|
|
, cstruct
|
|
, duration
|
|
, ethernet
|
|
, ipaddr
|
|
, logs
|
|
, lwt
|
|
, macaddr
|
|
, mirage-profile
|
|
, mirage-time
|
|
, alcotest
|
|
, mirage-clock-unix
|
|
, mirage-flow
|
|
, mirage-random
|
|
, mirage-random-test
|
|
, mirage-time-unix
|
|
, mirage-vnetif
|
|
, bisect_ppx
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "arp";
|
|
version = "3.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
|
sha256 = "1x3l8v96ywc3wrcwbf0j04b8agap4fif0fz6ki2ndzx57yqcjszn";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
duneVersion = "3";
|
|
|
|
nativeBuildInputs = [
|
|
bisect_ppx
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cstruct
|
|
duration
|
|
ethernet
|
|
ipaddr
|
|
logs
|
|
lwt
|
|
macaddr
|
|
mirage-profile
|
|
mirage-time
|
|
];
|
|
|
|
doCheck = true;
|
|
checkInputs = [
|
|
alcotest
|
|
mirage-clock-unix
|
|
mirage-flow
|
|
mirage-random
|
|
mirage-random-test
|
|
mirage-time-unix
|
|
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 ];
|
|
};
|
|
}
|