mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 10:34:16 +00:00
42 lines
867 B
Nix
42 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 ];
|
|
};
|
|
}
|