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