Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
995 B
Nix
48 lines
995 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
mandown,
|
|
protobuf,
|
|
nixosTests,
|
|
go-md2man,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "netavark";
|
|
version = "1.16.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = "netavark";
|
|
rev = "v${version}";
|
|
hash = "sha256-8Yai0c5AHHx+xTEVH23C5dy4VXRERLeg0iIAbD/Glis=";
|
|
};
|
|
|
|
cargoHash = "sha256-U8rNA5sAR9+q7cWQBt18iJfnylcCq/tVLXAdxWpAhjw=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
mandown
|
|
protobuf
|
|
go-md2man
|
|
];
|
|
|
|
postBuild = ''
|
|
make -C docs netavark.1
|
|
installManPage docs/netavark.1
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) podman; };
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/containers/netavark/releases/tag/${src.rev}";
|
|
description = "Rust based network stack for containers";
|
|
homepage = "https://github.com/containers/netavark";
|
|
license = licenses.asl20;
|
|
teams = [ teams.podman ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|