nixpkgs/pkgs/development/ocaml-modules/mirage-nat/default.nix
Vincent Laporte a5920ce574
ocamlPackages.tcpip: 7.1.2 → 8.0.0
ocamlPackages.mirage-nat: 3.0.1 → 3.0.2
2023-08-29 07:30:12 +02:00

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 ];
};
}