0eeabdeb66
GitOrigin-RevId: c07b471b52be8fbc49a7dc194e9b37a6e19ee04d
50 lines
1,007 B
Nix
50 lines
1,007 B
Nix
{ lib, buildDunePackage, fetchurl
|
|
, ipaddr, cstruct, lwt, logs, lru
|
|
, tcpip, ethernet, stdlib-shims
|
|
, alcotest, mirage-clock-unix
|
|
, ppxlib, ppx_deriving
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mirage-nat";
|
|
version = "2.2.5";
|
|
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
# due to cstruct
|
|
useDune2 = true;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
|
|
sha256 = "01xp0z4mywhawz7rxizi9ph342mqqwyfa5hqgvs8lhqzcym5d104";
|
|
};
|
|
|
|
buildInputs = [
|
|
ppxlib
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
ipaddr
|
|
cstruct
|
|
lwt
|
|
logs
|
|
lru
|
|
tcpip
|
|
ethernet
|
|
stdlib-shims
|
|
ppx_deriving
|
|
];
|
|
|
|
doCheck = true;
|
|
checkInputs = [
|
|
alcotest
|
|
mirage-clock-unix
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Mirage-nat is a library for network address translation to be used with MirageOS";
|
|
homepage = "https://github.com/mirage/${pname}";
|
|
license = licenses.isc;
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
};
|
|
}
|