netavark: init at 1.0.0

This commit is contained in:
zowoq 2022-01-22 17:09:34 +10:00
parent d4dc555985
commit 74b1085982
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, mandown
}:
rustPlatform.buildRustPackage rec {
pname = "netavark";
version = "1.0.0";
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = "v${version}";
sha256 = "sha256-E3Mdrc8/IwuOOwwVf4LaLrNFzuO95MEvy8BbStQRgoE=";
};
cargoVendorDir = "vendor";
preBuild = ''
substituteInPlace Cargo.toml \
--replace 'build = "build.rs"' ""
rm build.rs
export \
VERGEN_BUILD_SEMVER="${version}" \
VERGEN_BUILD_TIMESTAMP="$SOURCE_DATE_EPOCH" \
VERGEN_GIT_SHA="${src.rev}" \
VERGEN_RUSTC_HOST_TRIPLE=""
'';
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;
};
}

View File

@ -8062,6 +8062,8 @@ with pkgs;
netatalk = callPackage ../tools/filesystems/netatalk { };
netavark = callPackage ../tools/networking/netavark { };
netcdf = callPackage ../development/libraries/netcdf {
hdf5 = hdf5.override { usev110Api = true; };
};