3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/virtualization/cloud-hypervisor/default.nix

28 lines
952 B
Nix
Raw Normal View History

2021-04-04 20:37:00 +01:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, dtc, openssl }:
2020-07-20 14:03:35 +01:00
rustPlatform.buildRustPackage rec {
pname = "cloud-hypervisor";
2021-12-13 16:53:47 +00:00
version = "20.1";
2020-07-20 14:03:35 +01:00
src = fetchFromGitHub {
owner = "cloud-hypervisor";
repo = pname;
rev = "v${version}";
2021-12-13 16:53:47 +00:00
sha256 = "1r55ykxwa0xr1f9sp7mnv8nqf0dr7vw62b1w8r7mmyrndwnq6z5b";
2020-07-20 14:03:35 +01:00
};
nativeBuildInputs = [ pkg-config ];
2021-04-04 20:37:00 +01:00
buildInputs = [ openssl ] ++ lib.optional stdenv.isAarch64 dtc;
2020-07-20 14:03:35 +01:00
2021-12-13 16:53:47 +00:00
cargoSha256 = "07wpfhlp82hp3hr8vc52vhkrxd8xpyvdvfqh1dn1fnhxk3b1z7lz";
2020-07-20 14:03:35 +01: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 20:37:00 +01:00
maintainers = with maintainers; [ offline qyliss ];
platforms = [ "aarch64-linux" "x86_64-linux" ];
2020-07-20 14:03:35 +01:00
};
}