nixpkgs/pkgs/applications/virtualization/cloud-hypervisor/default.nix

28 lines
952 B
Nix
Raw Normal View History

2021-04-04 19:37:00 +00:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, dtc, openssl }:
2020-07-20 13:03:35 +00:00
rustPlatform.buildRustPackage rec {
pname = "cloud-hypervisor";
2021-10-15 11:16:34 +00:00
version = "19.0";
2020-07-20 13:03:35 +00:00
src = fetchFromGitHub {
owner = "cloud-hypervisor";
repo = pname;
rev = "v${version}";
2021-10-15 11:16:34 +00:00
sha256 = "0h3varacv9696mih8zrz3fp6xa8hxxvwzkrslhpf9ilcjs1bjihd";
2020-07-20 13:03:35 +00:00
};
nativeBuildInputs = [ pkg-config ];
2021-04-04 19:37:00 +00:00
buildInputs = [ openssl ] ++ lib.optional stdenv.isAarch64 dtc;
2020-07-20 13:03:35 +00:00
2021-10-15 11:16:34 +00:00
cargoSha256 = "015r9m9fr634ppn4qy0b8w1khjlxsv3wbpf3s7crmklzy57wakxl";
2020-07-20 13:03:35 +00:00
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 ];
2021-04-04 19:37:00 +00:00
maintainers = with maintainers; [ offline qyliss ];
platforms = [ "aarch64-linux" "x86_64-linux" ];
2020-07-20 13:03:35 +00:00
};
}