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

36 lines
701 B
Nix

{ lib
, buildDunePackage
, fetchurl
, cstruct
, logs
, lwt
, macaddr
, mirage-net
}:
buildDunePackage rec {
pname = "ethernet";
version = "3.2.0";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
hash = "sha256-TB2nAhQiHZ1Dk6n/3i49s9HKNH92yNUl3xl94hByrAk=";
};
propagatedBuildInputs = [
cstruct
mirage-net
macaddr
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 ];
};
}