14d6777962
freedesktop.org tarballs haven't been published since 0.7.0. I've sent a message to the mailing list (<87eev3cgcz.fsf@alyssa.is>), suggesting newer tarballs be published. Build system has changed from autoconf to meson+cmake/ninja, and the vtest/util.c patch doesn't seem to be necessary any more.
28 lines
868 B
Nix
28 lines
868 B
Nix
{ stdenv, fetchurl, cmake, meson, ninja, pkgconfig, python3
|
|
, libGLU, epoxy, libX11, libdrm, mesa
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "virglrenderer";
|
|
version = "0.8.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.bz2";
|
|
sha256 = "0ac39mplmy6lmcd6cljmfsrfby7m6ac3dzvmnn5pv200drl415l4";
|
|
};
|
|
|
|
buildInputs = [ libGLU epoxy libX11 libdrm mesa ];
|
|
|
|
nativeBuildInputs = [ cmake meson ninja pkgconfig python3 ];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
meta = with stdenv.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 ];
|
|
};
|
|
}
|