fix vaapiVdpau build with patch
This commit is contained in:
parent
075c1d4f15
commit
5c4a3c576c
|
@ -1,5 +1,10 @@
|
||||||
{ stdenv, fetchurl, libvdpau, mesa, libva, pkgconfig }:
|
{ stdenv, fetchurl, libvdpau, mesa, libva, pkgconfig }:
|
||||||
|
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
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libva-vdpau-driver-0.7.4";
|
name = "libva-vdpau-driver-0.7.4";
|
||||||
|
|
||||||
|
@ -17,6 +22,7 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ libvdpau mesa libva pkgconfig ];
|
buildInputs = [ libvdpau mesa libva pkgconfig ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
patch -p0 < ${libvdpau08patch} # use -p0 instead of -p1
|
||||||
sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
|
sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue