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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
905 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, meson, ninja, pkg-config, python3
, libGLU, libepoxy, libX11, libdrm, mesa
}:
2018-02-20 17:16:27 +00:00
stdenv.mkDerivation rec {
pname = "virglrenderer";
2023-01-11 17:42:18 +00:00
version = "0.10.4";
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";
2023-01-11 17:42:18 +00:00
sha256 = "sha256-qqvnko2sN4bdm9+F0PVjDW5FsiL5k3UAfjPSTqG+73c=";
2018-02-20 17:16:27 +00:00
};
2023-04-15 12:51:53 +00:00
separateDebugInfo = true;
buildInputs = [ libGLU libepoxy 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 20:31:01 +00: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 ];
};
}