depot/third_party/nixpkgs/pkgs/development/ocaml-modules/arp/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

67 lines
1.2 KiB
Nix

{ lib
, stdenv
, 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
, bisect_ppx
}:
buildDunePackage rec {
pname = "arp";
version = "3.1.0";
src = fetchurl {
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
hash = "sha256-g/aEhpufQcyS/vCtKk0Z1sYaYNRmQFaZ9rTp9F4nq54=";
};
minimalOCamlVersion = "4.08";
nativeBuildInputs = [
bisect_ppx
];
propagatedBuildInputs = [
cstruct
duration
ethernet
ipaddr
logs
lwt
macaddr
mirage-time
];
## NOTE: As of 18 april 2023 and ARP version 3.0.0, tests fail on Darwin.
doCheck = ! stdenv.isDarwin;
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 ];
};
}