depot/third_party/nixpkgs/pkgs/tools/networking/netavark/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

35 lines
789 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, mandown
}:
rustPlatform.buildRustPackage rec {
pname = "netavark";
version = "1.0.2";
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = "v${version}";
sha256 = "sha256-2ElEhKit/XysRsUw+dg7SnhDl+Zf+FJb5pIYpq1ALNs=";
};
cargoHash = "sha256-w3qz4ygjIvn+Rxd1JEVO6Ax08leuuJvC4Bk7VygbBh4=";
nativeBuildInputs = [ installShellFiles mandown ];
postBuild = ''
make -C docs
installManPage docs/*.1
'';
meta = with lib; {
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;
};
}