depot/third_party/nixpkgs/pkgs/development/ocaml-modules/arp/default.nix
Default email 0eeabdeb66 Project import generated by Copybara.
GitOrigin-RevId: c07b471b52be8fbc49a7dc194e9b37a6e19ee04d
2022-01-24 21:21:06 -06:00

55 lines
1.2 KiB
Nix

{ 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";
version = "3.0.0";
src = fetchurl {
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
sha256 = "1x3l8v96ywc3wrcwbf0j04b8agap4fif0fz6ki2ndzx57yqcjszn";
};
minimumOCamlVersion = "4.06";
useDune2 = true;
nativeBuildInputs = [
bisect_ppx
];
propagatedBuildInputs = [
cstruct
duration
ipaddr
logs
lwt
macaddr
mirage-profile
mirage-protocols
mirage-time
];
doCheck = true;
checkInputs = [
alcotest
ethernet
mirage-clock-unix
mirage-profile
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 ];
};
}