c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
29 lines
905 B
Nix
29 lines
905 B
Nix
{ lib, stdenv, fetchurl, cmake, meson, ninja, pkg-config, python3
|
|
, libGLU, libepoxy, libX11, libdrm, mesa
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "virglrenderer";
|
|
version = "0.10.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.bz2";
|
|
sha256 = "sha256-qqvnko2sN4bdm9+F0PVjDW5FsiL5k3UAfjPSTqG+73c=";
|
|
};
|
|
|
|
separateDebugInfo = true;
|
|
|
|
buildInputs = [ libGLU libepoxy libX11 libdrm mesa ];
|
|
|
|
nativeBuildInputs = [ cmake meson ninja pkg-config python3 ];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|