libva: use a cleaner installation method

(cherry-picked from commit 8ea5563011)
Tweaked not to cause a mass rebuild ATM.
This commit is contained in:
Vladimír Čunát 2016-02-15 17:05:31 +01:00
parent d039c87984
commit 20c31e65ab

View File

@ -21,16 +21,11 @@ stdenv.mkDerivation rec {
configureFlags = lib.optionals (!minimal) [
"--with-drivers-path=${mesa_noglu.driverLink}/lib/dri"
"--enable-glx"
];
"--enable-glx"
];
installFlags = lib.optional (!minimal) "DESTDIR=$(out)";
postInstall = lib.optionalString (!minimal) ''
cp -r $out/${mesa_noglu.driverLink}/* $out
cp -r $out/$out/* $out
rm -rf $out/run $out/$(echo "$out" | cut -d "/" -f2)
'';
installFlags = lib.optional (!minimal) "dummy_drv_video_ladir=$(out)/lib/dri";
postInstall = "";
meta = with stdenv.lib; {
homepage = http://www.freedesktop.org/wiki/Software/vaapi;