01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, dtc, openssl }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cloud-hypervisor";
|
|
version = "28.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloud-hypervisor";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-gl8LgR2Sz0DxPAYeyfTvLJg4Esotg/eBfCjbdgEUfRI=";
|
|
};
|
|
|
|
separateDebugInfo = true;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isAarch64 dtc;
|
|
|
|
cargoSha256 = "sha256-qPlk8MHuXnfmtQSqIiFBYQK7TgHun1CxLqVOz/DDvrs=";
|
|
|
|
OPENSSL_NO_VENDOR = true;
|
|
|
|
# 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" ];
|
|
};
|
|
}
|