ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
27 lines
952 B
Nix
27 lines
952 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, dtc, openssl }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cloud-hypervisor";
|
|
version = "20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloud-hypervisor";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1j2p2phv1fxsa2mdr66gyswqgij33m3sdaa460xrf98dm581bqw2";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isAarch64 dtc;
|
|
|
|
cargoSha256 = "12fmpq1y29mawa3xdwbwa3fw2hnhy5rqhlx54qp0s3x9g2jd7gsa";
|
|
|
|
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" ];
|
|
};
|
|
}
|