From 2ef2654de44014664ad99d05e3095ff60535c611 Mon Sep 17 00:00:00 2001 From: David Craven Date: Sun, 24 Jul 2016 19:52:25 +0200 Subject: [PATCH] gnu: Add virglrenderer. * gnu/packages/spice.scm (virglrenderer): New variable. Signed-off-by: Leo Famulari --- gnu/packages/spice.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/spice.scm b/gnu/packages/spice.scm index c88491fbd9..797b19a2e4 100644 --- a/gnu/packages/spice.scm +++ b/gnu/packages/spice.scm @@ -18,7 +18,9 @@ (define-module (gnu packages spice) #:use-module (gnu packages) + #:use-module (gnu packages gl) #:use-module (gnu packages libusb) + #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) #:use-module (guix build-system gnu) #:use-module (guix download) @@ -50,3 +52,28 @@ (define-public usbredir attached.") (home-page "http://www.spice-space.org") (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+)))) + +(define-public virglrenderer + (package + (name "virglrenderer") + (version "0.5.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://www.freedesktop.org/software/virgl/" + "virglrenderer-" version ".tar.bz2")) + (sha256 + (base32 + "1dj0j8nbyr7nrpds4dqlp43ji8ixjyqhgw6ywlz1r9dn6cs5m5d1")))) + (build-system gnu-build-system) + (inputs + `(("libepoxy" ,libepoxy) + ("mesa" ,mesa) + ("udev" ,eudev))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (synopsis "Virtual 3D GPU library") + (description "A virtual 3D GPU library that enables a virtualized operating +system to use the host GPU to accelerate 3D rendering.") + (home-page "https://virgil3d.github.io") + (license (list license:expat license:bsd-3))))