dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
45 lines
822 B
Nix
45 lines
822 B
Nix
{ lib
|
|
, buildDunePackage
|
|
, fetchurl
|
|
, cstruct
|
|
, logs
|
|
, lwt
|
|
, macaddr
|
|
, mirage-net
|
|
, mirage-profile
|
|
, ppx_cstruct
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "ethernet";
|
|
version = "3.0.0";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
duneVersion = "3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
|
hash = "sha256:0a898vp9dw42majsvzzvs8pc6x4ns01wlwhwbacixliv6vv78ng9";
|
|
};
|
|
|
|
buildInputs = [
|
|
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 ];
|
|
};
|
|
}
|