567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchurl,
|
|
ppx_sexp_conv,
|
|
ppx_cstruct,
|
|
lwt,
|
|
mirage-net,
|
|
io-page,
|
|
mirage-xen,
|
|
ipaddr,
|
|
mirage-profile,
|
|
shared-memory-ring,
|
|
sexplib,
|
|
logs,
|
|
macaddr,
|
|
lwt-dllist,
|
|
result,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "netchannel";
|
|
version = "2.1.3";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
duneVersion = "3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/mirage-net-xen/releases/download/v${version}/mirage-net-xen-${version}.tbz";
|
|
hash = "sha256-gOpzY4bn9L8wkbeViXy/XQmxKqqJfd99bcHQFitYFOE=";
|
|
};
|
|
|
|
buildInputs = [
|
|
ppx_cstruct
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
ppx_sexp_conv
|
|
lwt
|
|
mirage-net
|
|
io-page
|
|
mirage-xen
|
|
ipaddr
|
|
mirage-profile
|
|
shared-memory-ring
|
|
sexplib
|
|
logs
|
|
macaddr
|
|
lwt-dllist
|
|
result
|
|
];
|
|
|
|
meta = {
|
|
description = "Network device for reading and writing Ethernet frames via then Xen netfront/netback protocol";
|
|
license = lib.licenses.isc;
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
|
homepage = "https://github.com/mirage/mirage-net-xen";
|
|
};
|
|
}
|