2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, meson, ninja, pkg-config, python3
|
2021-11-11 04:35:34 +00:00
|
|
|
, libGLU, libepoxy, libX11, libdrm, mesa
|
2020-02-10 02:37:17 +00:00
|
|
|
}:
|
2018-02-20 17:16:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "virglrenderer";
|
2023-01-11 17:42:18 +00:00
|
|
|
version = "0.10.4";
|
2018-02-20 17:16:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-02-10 02:37:17 +00:00
|
|
|
url = "https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.bz2";
|
2023-01-11 17:42:18 +00:00
|
|
|
sha256 = "sha256-qqvnko2sN4bdm9+F0PVjDW5FsiL5k3UAfjPSTqG+73c=";
|
2018-02-20 17:16:27 +00:00
|
|
|
};
|
|
|
|
|
2023-04-15 12:51:53 +00:00
|
|
|
separateDebugInfo = true;
|
|
|
|
|
2021-11-11 04:35:34 +00:00
|
|
|
buildInputs = [ libGLU libepoxy libX11 libdrm mesa ];
|
2018-02-20 17:16:27 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake meson ninja pkg-config python3 ];
|
2018-02-20 17:16:27 +00:00
|
|
|
|
2020-02-10 02:37:17 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
2018-03-26 20:31:01 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-02-20 17:16:27 +00:00
|
|
|
description = "A virtual 3D GPU library that allows a qemu guest to use the host GPU for accelerated 3D rendering";
|
2020-03-03 22:33:35 +00:00
|
|
|
homepage = "https://virgil3d.github.io/";
|
2018-02-20 17:16:27 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.xeji ];
|
|
|
|
};
|
|
|
|
}
|