ocamlPackages.{mirage-net-xen,netchannel}: init at 2.0.0
This commit is contained in:
parent
980a2bed3b
commit
2fe8239172
39
pkgs/development/ocaml-modules/mirage-net-xen/default.nix
Normal file
39
pkgs/development/ocaml-modules/mirage-net-xen/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ lib
|
||||||
|
, buildDunePackage
|
||||||
|
, netchannel
|
||||||
|
, ppx_sexp_conv
|
||||||
|
, lwt
|
||||||
|
, cstruct
|
||||||
|
, mirage-net
|
||||||
|
, mirage-xen
|
||||||
|
, io-page
|
||||||
|
, lwt-dllist
|
||||||
|
, logs
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "mirage-net-xen";
|
||||||
|
|
||||||
|
inherit (netchannel)
|
||||||
|
src
|
||||||
|
version
|
||||||
|
useDune2
|
||||||
|
minimumOCamlVersion
|
||||||
|
meta
|
||||||
|
;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
ppx_sexp_conv
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
lwt
|
||||||
|
cstruct
|
||||||
|
netchannel
|
||||||
|
mirage-net
|
||||||
|
mirage-xen
|
||||||
|
io-page
|
||||||
|
lwt-dllist
|
||||||
|
logs
|
||||||
|
];
|
||||||
|
}
|
55
pkgs/development/ocaml-modules/netchannel/default.nix
Normal file
55
pkgs/development/ocaml-modules/netchannel/default.nix
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
{ lib
|
||||||
|
, buildDunePackage
|
||||||
|
, fetchurl
|
||||||
|
, ppx_sexp_conv
|
||||||
|
, ppx_cstruct
|
||||||
|
, lwt
|
||||||
|
, mirage-net
|
||||||
|
, io-page
|
||||||
|
, mirage-xen
|
||||||
|
, ipaddr
|
||||||
|
, mirage-profile
|
||||||
|
, shared-memory-ring
|
||||||
|
, sexplib
|
||||||
|
, logs
|
||||||
|
, rresult
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage rec {
|
||||||
|
pname = "netchannel";
|
||||||
|
version = "2.0.0";
|
||||||
|
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
|
minimumOCamlVersion = "4.08";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/mirage/mirage-net-xen/releases/download/v${version}/mirage-net-xen-v${version}.tbz";
|
||||||
|
sha256 = "ec3906ef1804ef6a9e36b91f4ae73ce4849e9e0d1d36a80fe66b5f905fab93ad";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
ppx_cstruct
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
ppx_sexp_conv
|
||||||
|
lwt
|
||||||
|
mirage-net
|
||||||
|
io-page
|
||||||
|
mirage-xen
|
||||||
|
ipaddr
|
||||||
|
mirage-profile
|
||||||
|
shared-memory-ring
|
||||||
|
sexplib
|
||||||
|
logs
|
||||||
|
rresult
|
||||||
|
];
|
||||||
|
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -717,6 +717,8 @@ let
|
||||||
|
|
||||||
mirage-net = callPackage ../development/ocaml-modules/mirage-net { };
|
mirage-net = callPackage ../development/ocaml-modules/mirage-net { };
|
||||||
|
|
||||||
|
mirage-net-xen = callPackage ../development/ocaml-modules/mirage-net-xen { };
|
||||||
|
|
||||||
mirage-profile = callPackage ../development/ocaml-modules/mirage-profile { };
|
mirage-profile = callPackage ../development/ocaml-modules/mirage-profile { };
|
||||||
|
|
||||||
mirage-protocols = callPackage ../development/ocaml-modules/mirage-protocols { };
|
mirage-protocols = callPackage ../development/ocaml-modules/mirage-protocols { };
|
||||||
|
@ -755,6 +757,8 @@ let
|
||||||
|
|
||||||
mustache = callPackage ../development/ocaml-modules/mustache { };
|
mustache = callPackage ../development/ocaml-modules/mustache { };
|
||||||
|
|
||||||
|
netchannel = callPackage ../development/ocaml-modules/netchannel { };
|
||||||
|
|
||||||
nocrypto = callPackage ../development/ocaml-modules/nocrypto { };
|
nocrypto = callPackage ../development/ocaml-modules/nocrypto { };
|
||||||
|
|
||||||
nonstd = callPackage ../development/ocaml-modules/nonstd { };
|
nonstd = callPackage ../development/ocaml-modules/nonstd { };
|
||||||
|
|
Loading…
Reference in a new issue