add qemu-wayland

This commit is contained in:
Jörg Thalheim
2023-12-06 14:28:35 +01:00
parent 6e807198d1
commit eedcad03a3
6 changed files with 349 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
{ aemu
, rustPlatform
, fetchFromGitHub
, pkg-config
, gfxstream
, libdrm
}:
rustPlatform.buildRustPackage {
pname = "rutabaga_gfx_ffi";
version = "unstable-2023-12-05";
src = fetchFromGitHub {
owner = "google";
repo = "crosvm";
rev = "a10c83864e1d6e47773ca06e47ada4f888b30d82";
hash = "sha256-Dd0oCgCL5LNxDuOJ6hyCXeqGyKBP0AqKamQTKXqNcjk=";
fetchSubmodules = true;
};
buildPhase = ''
cd rutabaga_gfx/ffi
make build
'';
installPhase = ''
make install prefix=$out
'';
cargoHash = "sha256-oh49o/WjfT9xsQH4SUtFwNl6H3pX5Wio3FzKw+slJcQ=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gfxstream aemu libdrm ];
}