nixpkgs/pkgs/tools/networking/netavark/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
987 B
Nix
Raw Normal View History

2022-01-22 07:09:34 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, mandown
, protobuf
2022-08-18 06:02:54 +00:00
, nixosTests
2022-01-22 07:09:34 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "netavark";
version = "1.5.0";
2022-01-22 07:09:34 +00:00
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = "v${version}";
hash = "sha256-EuhnI7N8Ry6qV4q3QxdHdTuJ7F4gIA3a9NZnb33KWZ8=";
2022-01-22 07:09:34 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"netavark_proxy-0.1.0" = "sha256-Rhnry2Y33ogpK1hQSyWD90BDzIJHzlgn8vtHu2t3KLw=";
};
};
2022-01-22 07:09:34 +00:00
nativeBuildInputs = [ installShellFiles mandown protobuf ];
2022-01-22 07:09:34 +00:00
postBuild = ''
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; {
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;
};
}