4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
41 lines
867 B
Nix
41 lines
867 B
Nix
{ lib, buildDunePackage, fetchurl
|
|
, ipaddr, cstruct, logs, lru
|
|
, tcpip, ethernet
|
|
, alcotest, mirage-clock-unix
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mirage-nat";
|
|
version = "3.0.1";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
duneVersion = "3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
|
hash = "sha256-wReySOMulGkrPD60XxpgMrUoHzY9hQ7TZzYQyJ3eiik=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ipaddr
|
|
cstruct
|
|
logs
|
|
lru
|
|
tcpip
|
|
ethernet
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|