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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.1 KiB
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";
2023-03-06 03:47:44 +00:00
version = "30.0";
2020-07-20 13:03:35 +00:00
src = fetchFromGitHub {
owner = "cloud-hypervisor";
repo = pname;
rev = "v${version}";
2023-03-06 03:47:44 +00:00
sha256 = "sha256-emy4Sk/j9G+Ou/9h1Kgd70MgbpYMobAXyqAE2LJeOio=";
2020-07-20 13:03:35 +00:00
};
2022-10-09 09:27:44 +00:00
separateDebugInfo = true;
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
2023-03-06 03:47:44 +00:00
cargoHash = "sha256-/BZN4Jsk3Hv9V0FSqQGHmVrEky6gAovNCd9tfiIHofg=";
2022-03-06 13:17:38 +00:00
OPENSSL_NO_VENDOR = true;
2022-01-22 21:41:41 +00:00
# Integration tests require root.
cargoTestFlags = [ "--bins" ];
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
};
}