Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
39 lines
845 B
Nix
39 lines
845 B
Nix
{ lib, buildDunePackage, fetchurl
|
|
, ipaddr, cstruct, logs, lru
|
|
, tcpip, ethernet
|
|
, alcotest, mirage-clock-unix
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mirage-nat";
|
|
version = "3.0.2";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-${version}.tbz";
|
|
hash = "sha256-Z1g3qb26x/S6asYv6roTW77r41SHy7OGN7MoZJ/E8Is=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|