2021-04-26 19:14:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildDunePackage
|
|
|
|
, fetchurl
|
|
|
|
, ppx_sexp_conv
|
|
|
|
, ppx_cstruct
|
|
|
|
, lwt
|
|
|
|
, mirage-net
|
|
|
|
, io-page
|
|
|
|
, mirage-xen
|
|
|
|
, ipaddr
|
|
|
|
, mirage-profile
|
|
|
|
, shared-memory-ring
|
|
|
|
, sexplib
|
|
|
|
, logs
|
2022-07-14 12:49:19 +00:00
|
|
|
, macaddr
|
|
|
|
, lwt-dllist
|
|
|
|
, result
|
2021-04-26 19:14:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "netchannel";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "2.1.2";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-02-22 10:55:15 +00:00
|
|
|
duneVersion = "3";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-14 12:49:19 +00:00
|
|
|
url = "https://github.com/mirage/mirage-net-xen/releases/download/v${version}/mirage-net-xen-${version}.tbz";
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-lTmwcNKiaq5EdJdM4UaaAVdZ+hTCX5U9MPKY/r3i7fw=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
buildInputs = [
|
2021-04-26 19:14:03 +00:00
|
|
|
ppx_cstruct
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ppx_sexp_conv
|
|
|
|
lwt
|
|
|
|
mirage-net
|
|
|
|
io-page
|
|
|
|
mirage-xen
|
|
|
|
ipaddr
|
|
|
|
mirage-profile
|
|
|
|
shared-memory-ring
|
|
|
|
sexplib
|
|
|
|
logs
|
2022-07-14 12:49:19 +00:00
|
|
|
macaddr
|
|
|
|
lwt-dllist
|
|
|
|
result
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Network device for reading and writing Ethernet frames via then Xen netfront/netback protocol";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
homepage = "https://github.com/mirage/mirage-net-xen";
|
|
|
|
};
|
|
|
|
}
|