2022-01-22 07:09:34 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, mandown
|
2023-02-03 01:39:43 +00:00
|
|
|
, protobuf
|
2022-08-18 06:02:54 +00:00
|
|
|
, nixosTests
|
2022-01-22 07:09:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "netavark";
|
2023-06-30 22:57:22 +00:00
|
|
|
version = "1.7.0";
|
2022-01-22 07:09:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-06-30 22:57:22 +00:00
|
|
|
hash = "sha256-amvy8sR2gpTYU7wcfkFeYyaTvrhZC558zidNdHwxqaI=";
|
2022-01-22 07:09:34 +00:00
|
|
|
};
|
|
|
|
|
2023-06-30 22:57:22 +00:00
|
|
|
cargoHash = "sha256-v8djyU+MvBmg929oFVPZlRPtj7zK8eZg3/KmCsFNWpw=";
|
2022-01-22 07:09:34 +00:00
|
|
|
|
2023-02-03 01:39:43 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles mandown protobuf ];
|
2022-01-22 07:09:34 +00:00
|
|
|
|
|
|
|
postBuild = ''
|
2022-12-07 23:10:04 +00:00
|
|
|
make -C docs netavark.1
|
|
|
|
installManPage docs/netavark.1
|
2022-01-22 07:09:34 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-18 06:02:54 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) podman; };
|
|
|
|
|
2022-01-22 07:09:34 +00:00
|
|
|
meta = with lib; {
|
2023-04-12 03:46:08 +00:00
|
|
|
changelog = "https://github.com/containers/netavark/releases/tag/${src.rev}";
|
2022-01-22 07:09:34 +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;
|
|
|
|
};
|
|
|
|
}
|