3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/virglrenderer/default.nix

32 lines
852 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, libGLU, epoxy, libX11, libdrm, mesa_noglu }:
2018-02-20 17:16:27 +00:00
stdenv.mkDerivation rec {
name = "virglrenderer-${version}";
2018-09-25 12:39:38 +01:00
version = "0.7.0";
2018-02-20 17:16:27 +00:00
src = fetchurl {
url = "https://www.freedesktop.org/software/virgl/${name}.tar.bz2";
2018-09-25 12:39:38 +01:00
sha256 = "041agg1d6i8hg250y30f08n3via0hs9rbijxdrfifb8ara805v0m";
2018-02-20 17:16:27 +00:00
};
buildInputs = [ libGLU epoxy libX11 libdrm mesa_noglu ];
2018-02-20 17:16:27 +00:00
nativeBuildInputs = [ pkgconfig ];
2018-03-26 21:31:01 +01:00
# Fix use of fd_set without proper include
prePatch = ''
sed -e '1i#include <sys/select.h>' -i vtest/util.c
'';
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 ];
};
}