vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / applications / virtualization / stratovirt / default.nix
bloba1f3fb53e0430146934366da0d68148ee1ed1b95
1 { lib, rustPlatform, fetchgit
2 , pkg-config, pixman, libcap_ng, cyrus_sasl
3 , libpulseaudio, libclang, gtk3, libusbgx, alsa-lib
4 , linuxHeaders, libseccomp
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "stratovirt";
9   version = "2.4.0";
11   src = fetchgit {
12     url = "https://gitee.com/openeuler/stratovirt.git";
13     rev = "v${version}";
14     hash = "sha256-1Ex6ahKBoVRikSqrgHGYaBFzWkPFDm8bGVyB7KmO8tI=";
15   };
17   cargoHash = "sha256-uuZCbmt3eIlKurwMOV7LezVSjOVG/90OdT2PC8YLi3I=";
19   nativeBuildInputs = [
20     pkg-config
21     rustPlatform.bindgenHook
22   ];
24   buildInputs = [
25     pixman
26     libcap_ng
27     cyrus_sasl
28     libpulseaudio
29     gtk3
30     libusbgx
31     alsa-lib
32     libclang
33     linuxHeaders
34     libseccomp
35   ];
37   meta = with lib; {
38     homepage = "https://gitee.com/openeuler/stratovirt";
39     description = "Virtual Machine Manager from Huawei";
40     license = licenses.mulan-psl2;
41     maintainers = with maintainers; [ astro ];
42     platforms = [ "aarch64-linux" "x86_64-linux" ];
43     mainProgram = "stratovirt";
44   };