depot/third_party/nixpkgs/pkgs/development/libraries/virglrenderer/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
870 B
Nix

{ stdenv, fetchurl, cmake, meson, ninja, pkgconfig, python3
, libGLU, epoxy, libX11, libdrm, mesa
}:
stdenv.mkDerivation rec {
pname = "virglrenderer";
version = "0.8.2";
src = fetchurl {
url = "https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.bz2";
sha256 = "07vfzg99wq92yg2phza9jc0zvps34yy9gc8v4hibqchdl77fmspx";
};
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 ];
};
}