2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, mandown
|
2023-02-09 11:40:11 +00:00
|
|
|
, protobuf
|
2023-01-11 07:51:40 +00:00
|
|
|
, nixosTests
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "netavark";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "1.6.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-USGmYLBv2ynnLx5jg+WkRle0AMtO7dDgf41VIepoHN0=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
cargoHash = "sha256-zj1eE7f4/wSVe+78abMePqsIrCPl6Uhtavn8hq7+ZRY=";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles mandown protobuf ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
postBuild = ''
|
2022-12-17 10:02:37 +00:00
|
|
|
make -C docs netavark.1
|
|
|
|
installManPage docs/netavark.1
|
2022-03-05 16:20:37 +00:00
|
|
|
'';
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) podman; };
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
meta = with lib; {
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/containers/netavark/releases/tag/${src.rev}";
|
2022-03-05 16:20:37 +00:00
|
|
|
description = "Rust based network stack for containers";
|
|
|
|
homepage = "https://github.com/containers/netavark";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ] ++ teams.podman.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|