From 5c4a3c576c10b732e0b64a0ae370d246790ea34b Mon Sep 17 00:00:00 2001 From: Matej Cotman Date: Fri, 29 Aug 2014 12:13:41 +0200 Subject: [PATCH] fix vaapiVdpau build with patch --- pkgs/development/libraries/vaapi-vdpau/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/vaapi-vdpau/default.nix b/pkgs/development/libraries/vaapi-vdpau/default.nix index 9b28d0016dd..02a4155947f 100644 --- a/pkgs/development/libraries/vaapi-vdpau/default.nix +++ b/pkgs/development/libraries/vaapi-vdpau/default.nix @@ -1,5 +1,10 @@ { 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 { name = "libva-vdpau-driver-0.7.4"; @@ -17,6 +22,7 @@ stdenv.mkDerivation rec { buildInputs = [ libvdpau mesa libva pkgconfig ]; preConfigure = '' + patch -p0 < ${libvdpau08patch} # use -p0 instead of -p1 sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure '';