3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/virglrenderer/default.nix
2021-06-30 14:21:18 +00:00

28 lines
870 B
Nix

{ lib, stdenv, fetchurl, cmake, meson, ninja, pkg-config, python3
, libGLU, epoxy, libX11, libdrm, mesa
}:
stdenv.mkDerivation rec {
pname = "virglrenderer";
version = "0.9.1";
src = fetchurl {
url = "https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.bz2";
sha256 = "1h76a1ylhh4niq33sa5knx033sr4k2816vibh4m58j54y7qc6346";
};
buildInputs = [ libGLU epoxy 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 ];
};
}