From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44147) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrRY3-0002vp-PT for guix-patches@gnu.org; Sat, 27 Jul 2019 14:36:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrRY2-00061r-Hz for guix-patches@gnu.org; Sat, 27 Jul 2019 14:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36593) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrRY2-00061j-EI for guix-patches@gnu.org; Sat, 27 Jul 2019 14:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrRY2-0002QM-9k for guix-patches@gnu.org; Sat, 27 Jul 2019 14:36:02 -0400 Subject: [bug#36814] [PATCH 1/2] gnu: Add intel-vaapi-driver. Resent-Message-ID: From: Marius Bakke In-Reply-To: <20190726033037.1203-1-me@tobias.gr> References: <871rydiifr.fsf@nckx> <20190726033037.1203-1-me@tobias.gr> Date: Sat, 27 Jul 2019 20:35:38 +0200 Message-ID: <877e83496t.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Tobias Geerinckx-Rice , 36814@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice via Guix-patches writes: > * gnu/packages/video.scm (intel-vaapi-driver): New public variable. > --- > gnu/packages/video.scm | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm > index 4b9e05edfe..f068c5df65 100644 > --- a/gnu/packages/video.scm > +++ b/gnu/packages/video.scm > @@ -2695,6 +2695,44 @@ of modern, widely supported codecs.") > ;; Combination under GPLv2. See LICENSE. > (license license:gpl2))) >=20=20 > +(define-public intel-vaapi-driver > + (package > + (name "intel-vaapi-driver") > + (version "2.3.0") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://github.com/intel/intel-vaapi-driver/" > + "releases/download/" version "/intel-vaapi-dr= iver-" > + version ".tar.bz2")) > + (sha256 > + (base32 "1qyzxh3p8cw4fv8bz9zd4kc8hajlaps7xryzh6pad814n3m5sbjw"))= )) > + (build-system gnu-build-system) > + (native-inputs > + `(("pkg-config" ,pkg-config))) > + (inputs > + `(("libdrm" ,libdrm) > + ("libva" ,libva) > + ("libx11" ,libx11))) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (add-before 'configure 'set-up-directories > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out"))) > + (setenv "LIBVA_DRIVERS_PATH" (string-append out "/lib/dri= ")) > + #t)))))) Can this be passed in #:configure-flags? What does it do, anyway? :-) > + (home-page "https://01.org/linuxmedia/vaapi") > + (synopsis "VA-API video acceleration driver for Intel GEN Graphics d= evices") > + (description > + "This is the @acronym{VA-API, Video Acceleration API} back end requ= ired for > +for hardware-accelerated video processing on Intel GEN Graphics devices > +supported by the i915 driver, such as integrated Intel HD Graphics. It = provides > +access to both hardware and shader functionality for faster encoding, de= coding, > +and post-processing video formats like MPEG2, H.264/AVC, and VC-1.") I suppose we should limit this driver to i686-linux and x86_64-linux only. LGTM, looking forward to try it! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl08mXoACgkQoqBt8qM6 VPrAEwf7B2cshlcAxl28HRIw6t3CA0Kg9OGOefP2zndJA70/2qMLADeB0blKdkvL Bzevs6Y+lc+h8+woIG5fsDIuOAgMTvX+V/Li55lBMKtppEw53UQ8igvInWeGzZCE eTwMCmFIC4biJydwRj/ft5jRg/v6Ocpy9JA76SOJCCaff0w7cYlNguABKTpQWycT yh5DNsrLiCzh0bRJauWZQKtKxaXQaOU/Z/p307nHSxkyeL8u3gABimYDF5r534iB dabvF8zxLkhhunY/Wo2t//9rRSrg0aq/BrSWzKj7X8JR8B2fQ5U0OgYX0RpKupG2 f+pok+EmN/KxQ2Defu0+AYcdkg/2ow== =hlmC -----END PGP SIGNATURE----- --=-=-=--