Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / ocaml-modules / netchannel / default.nix
blob8b0dbec39276abb31fb97c22812c3ef482c81f78
1 { lib
2 , buildDunePackage
3 , fetchurl
4 , ppx_sexp_conv
5 , ppx_cstruct
6 , lwt
7 , mirage-net
8 , io-page
9 , mirage-xen
10 , ipaddr
11 , mirage-profile
12 , shared-memory-ring
13 , sexplib
14 , logs
15 , macaddr
16 , lwt-dllist
17 , result
20 buildDunePackage rec {
21   pname = "netchannel";
22   version = "2.1.2";
24   minimalOCamlVersion = "4.08";
25   duneVersion = "3";
27   src = fetchurl {
28     url = "https://github.com/mirage/mirage-net-xen/releases/download/v${version}/mirage-net-xen-${version}.tbz";
29     hash = "sha256-lTmwcNKiaq5EdJdM4UaaAVdZ+hTCX5U9MPKY/r3i7fw=";
30   };
32   buildInputs = [
33     ppx_cstruct
34   ];
36   propagatedBuildInputs = [
37     ppx_sexp_conv
38     lwt
39     mirage-net
40     io-page
41     mirage-xen
42     ipaddr
43     mirage-profile
44     shared-memory-ring
45     sexplib
46     logs
47     macaddr
48     lwt-dllist
49     result
50   ];
52   meta = with lib; {
53     description = "Network device for reading and writing Ethernet frames via then Xen netfront/netback protocol";
54     license = licenses.isc;
55     maintainers = [ maintainers.sternenseemann ];
56     homepage = "https://github.com/mirage/mirage-net-xen";
57   };