mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
netavark: init at 1.0.0
This commit is contained in:
parent
d4dc555985
commit
74b1085982
48
pkgs/tools/networking/netavark/default.nix
Normal file
48
pkgs/tools/networking/netavark/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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; };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user