Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / ocaml-modules / ethernet / default.nix
blobbc4f4a4754479da9cd064443df1923a99f9183ec
1 { lib, buildDunePackage, fetchurl
2 , rresult, cstruct, ppx_cstruct, mirage-net, mirage-protocols
3 , mirage-profile, macaddr, fmt, lwt, logs
4 }:
6 buildDunePackage rec {
7   pname = "ethernet";
8   version = "2.2.0";
10   minimumOCamlVersion = "4.06";
12   # necessary due to cstruct
13   useDune2 = true;
15   src = fetchurl {
16     url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
17     sha256 = "0qzisqibx2gd8rh330n642mk5wz229199rnlrs7x8cr5pnymif7z";
18   };
20   nativeBuildInputs = [
21     ppx_cstruct
22   ];
24   propagatedBuildInputs = [
25     rresult
26     cstruct
27     mirage-net
28     mirage-protocols
29     macaddr
30     mirage-profile
31     fmt
32     lwt
33     logs
34   ];
36   meta = with lib; {
37     description = "OCaml Ethernet (IEEE 802.3) layer, used in MirageOS";
38     homepage = "https://github.com/mirage/ethernet";
39     license = licenses.isc;
40     maintainers = [ maintainers.sternenseemann ];
41   };