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

28 lines
870 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, meson, ninja, pkg-config, python3
, libGLU, epoxy, libX11, libdrm, mesa
}:
2018-02-20 17:16:27 +00:00
stdenv.mkDerivation rec {
pname = "virglrenderer";
2020-03-03 22:33:35 +00:00
version = "0.8.2";
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";
2020-03-03 22:33:35 +00:00
sha256 = "07vfzg99wq92yg2phza9jc0zvps34yy9gc8v4hibqchdl77fmspx";
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 pkg-config python3 ];
2018-02-20 17:16:27 +00:00
dontUseCmakeConfigure = true;
2018-03-26 21:31:01 +01:00
meta = with lib; {
2018-02-20 17:16:27 +00:00
description = "A virtual 3D GPU library that allows a qemu guest to use the host GPU for accelerated 3D rendering";
2020-03-03 22:33:35 +00:00
homepage = "https://virgil3d.github.io/";
2018-02-20 17:16:27 +00:00
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.xeji ];
};
}