depot/third_party/nixpkgs/pkgs/development/ocaml-modules/mirage-nat/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

41 lines
873 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;
nativeCheckInputs = [
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 ];
};
}