81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
30 lines
1,022 B
Nix
30 lines
1,022 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, dtc, openssl }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cloud-hypervisor";
|
|
version = "21.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloud-hypervisor";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "00b0ij9sfv7zsrgwrcj2rzpy1z8bp0m0lmzjp433xzpcgcnzw3w5";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isAarch64 dtc;
|
|
|
|
cargoSha256 = "0lf7bb468s2ic9vabx954i46605gf7c6064vvwqvz7djk30z0y0d";
|
|
|
|
# Integration tests require root.
|
|
cargoTestFlags = [ "--bins" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/cloud-hypervisor/cloud-hypervisor";
|
|
description = "Open source Virtual Machine Monitor (VMM) that runs on top of KVM";
|
|
changelog = "https://github.com/cloud-hypervisor/cloud-hypervisor/releases/tag/v${version}";
|
|
license = with licenses; [ asl20 bsd3 ];
|
|
maintainers = with maintainers; [ offline qyliss ];
|
|
platforms = [ "aarch64-linux" "x86_64-linux" ];
|
|
};
|
|
}
|