Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildDunePackage
3, fetchurl
4, cstruct
5, logs
6, lwt
7, macaddr
8, mirage-net
9, mirage-profile
10, ppx_cstruct
11}:
12
13buildDunePackage rec {
14 pname = "ethernet";
15 version = "3.0.0";
16
17 minimalOCamlVersion = "4.08";
18
19 duneVersion = "3";
20
21 src = fetchurl {
22 url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
23 hash = "sha256:0a898vp9dw42majsvzzvs8pc6x4ns01wlwhwbacixliv6vv78ng9";
24 };
25
26 buildInputs = [
27 ppx_cstruct
28 ];
29
30 propagatedBuildInputs = [
31 cstruct
32 mirage-net
33 macaddr
34 mirage-profile
35 lwt
36 logs
37 ];
38
39 meta = with lib; {
40 description = "OCaml Ethernet (IEEE 802.3) layer, used in MirageOS";
41 homepage = "https://github.com/mirage/ethernet";
42 license = licenses.isc;
43 maintainers = [ maintainers.sternenseemann ];
44 };
45}