2018-02-24 13:12:44 +00:00
|
|
|
{ stdenv, fetchurl, libvdpau, libGLU_combined, libva, pkgconfig }:
|
2014-08-29 11:13:41 +01:00
|
|
|
let
|
|
|
|
libvdpau08patch = (fetchurl { url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/libva-vdpau-driver/files/libva-vdpau-driver-0.7.4-libvdpau-0.8.patch?revision=1.1";
|
|
|
|
name = "libva-vdpau-driver-0.7.4-libvdpau-0.8.patch";
|
|
|
|
sha256 = "1n2cys59wyv8ylx9i5m3s6856mgx24hzcp45w1ahdfbzdv9wrfbl";
|
|
|
|
});
|
|
|
|
in
|
2013-01-28 23:26:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-01-29 10:56:12 +00:00
|
|
|
name = "libva-vdpau-driver-0.7.4";
|
2013-01-28 23:26:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.freedesktop.org/software/vaapi/releases/libva-vdpau-driver/${name}.tar.bz2";
|
2013-01-29 10:56:12 +00:00
|
|
|
sha256 = "1fcvgshzyc50yb8qqm6v6wn23ghimay23ci0p8sm8gxcy211jp0m";
|
2013-01-28 23:26:20 +00:00
|
|
|
};
|
|
|
|
|
2014-02-17 19:15:01 +00:00
|
|
|
patches = [ ./glext85.patch
|
|
|
|
(fetchurl { url = "http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/libva-vdpau-driver/files/libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch?revision=1.1";
|
|
|
|
name = "libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch";
|
|
|
|
sha256 = "166svcav6axkrlb3i4rbf6dkwjnqdf69xw339az1f5yabj72pqqs";
|
|
|
|
}) ];
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ libvdpau libGLU_combined libva ];
|
2013-01-28 23:26:20 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2014-08-29 11:13:41 +01:00
|
|
|
patch -p0 < ${libvdpau08patch} # use -p0 instead of -p1
|
2013-01-28 23:26:20 +00:00
|
|
|
sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
|
|
|
|
'';
|
|
|
|
|
2013-06-19 16:33:44 +01:00
|
|
|
|
2013-01-28 23:26:20 +00:00
|
|
|
meta = {
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://cgit.freedesktop.org/vaapi/vdpau-driver/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-01-28 23:26:20 +00:00
|
|
|
description = "VDPAU driver for the VAAPI library";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-01-28 23:26:20 +00:00
|
|
|
};
|
|
|
|
}
|