2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, python3
|
2021-12-06 16:07:01 +00:00
|
|
|
, libGLU, libepoxy, libX11, libdrm, mesa
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "virglrenderer";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-11-16 04:20:00 +00:00
|
|
|
url = "https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/${version}/virglrenderer-${version}.tar.bz2";
|
|
|
|
hash = "sha256-KMGPP2MeuATHFXKr5oW9HuFOMmmYpmkVLvMvQi0cEdg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [ libGLU libepoxy libX11 libdrm mesa ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config python3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A virtual 3D GPU library that allows a qemu guest to use the host GPU for accelerated 3D rendering";
|
|
|
|
homepage = "https://virgil3d.github.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.xeji ];
|
|
|
|
};
|
|
|
|
}
|