2023-03-08 16:32:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, cstruct
|
|
|
|
, logs
|
|
|
|
, lwt
|
|
|
|
, macaddr
|
|
|
|
, mirage-net
|
|
|
|
, mirage-profile
|
|
|
|
, ppx_cstruct
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ethernet";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "3.0.0";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
duneVersion = "3";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
2023-03-08 16:32:21 +00:00
|
|
|
hash = "sha256:0a898vp9dw42majsvzzvs8pc6x4ns01wlwhwbacixliv6vv78ng9";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
buildInputs = [
|
2021-01-05 17:05:55 +00:00
|
|
|
ppx_cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cstruct
|
|
|
|
mirage-net
|
|
|
|
macaddr
|
|
|
|
mirage-profile
|
|
|
|
lwt
|
|
|
|
logs
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OCaml Ethernet (IEEE 802.3) layer, used in MirageOS";
|
|
|
|
homepage = "https://github.com/mirage/ethernet";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|