Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
pkg-config,
dtc,
openssl,
}:
rustPlatform.buildRustPackage rec {
pname = "cloud-hypervisor";
version = "48.0";
src = fetchFromGitHub {
owner = "cloud-hypervisor";
repo = "cloud-hypervisor";
rev = "v${version}";
hash = "sha256-cfS3sO1GQIxF9UlzKP9iE/UuJwGVIkNBN7GDF/ltn4Q=";
};
cargoHash = "sha256-QvW1loljt9KzY0h2pG7n9NCkJJOYr/VxftsyqATm9DA=";
separateDebugInfo = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optional stdenv.hostPlatform.isAarch64 dtc;
checkInputs = [ openssl ];
OPENSSL_NO_VENDOR = true;
cargoTestFlags = [
"--workspace"
"--bins"
"--lib" # Integration tests require root.
"--exclude"
"hypervisor" # /dev/kvm
"--exclude"
"net_util" # /dev/net/tun
"--exclude"
"vmm" # /dev/kvm
];
meta = {
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 lib.licenses; [
asl20
bsd3
];
mainProgram = "cloud-hypervisor";
maintainers = with lib.maintainers; [
offline
qyliss
];
platforms = [
"aarch64-linux"
"riscv64-linux"
"x86_64-linux"
];
};
}