Files
nixpkgs/pkgs/development/ocaml-modules/netchannel/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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";
};
}