nixpkgs/pkgs/development/libraries/virglrenderer/default.nix

28 lines
868 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, meson, ninja, pkgconfig, python3
, libGLU, epoxy, libX11, libdrm, mesa
}:
2018-02-20 17:16:27 +00:00
stdenv.mkDerivation rec {
pname = "virglrenderer";
version = "0.8.1";
2018-02-20 17:16:27 +00:00
src = fetchurl {
url = "https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.bz2";
sha256 = "0ac39mplmy6lmcd6cljmfsrfby7m6ac3dzvmnn5pv200drl415l4";
2018-02-20 17:16:27 +00:00
};
buildInputs = [ libGLU epoxy libX11 libdrm mesa ];
2018-02-20 17:16:27 +00:00
nativeBuildInputs = [ cmake meson ninja pkgconfig python3 ];
2018-02-20 17:16:27 +00:00
dontUseCmakeConfigure = true;
2018-03-26 21:31:01 +01:00
2018-02-20 17:16:27 +00:00
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 ];
};
}