libva: use a cleaner installation method
(cherry-picked from commit 8ea5563011
)
Tweaked not to cause a mass rebuild ATM.
This commit is contained in:
parent
d039c87984
commit
20c31e65ab
|
@ -21,16 +21,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
configureFlags = lib.optionals (!minimal) [
|
configureFlags = lib.optionals (!minimal) [
|
||||||
"--with-drivers-path=${mesa_noglu.driverLink}/lib/dri"
|
"--with-drivers-path=${mesa_noglu.driverLink}/lib/dri"
|
||||||
"--enable-glx"
|
"--enable-glx"
|
||||||
];
|
];
|
||||||
|
|
||||||
installFlags = lib.optional (!minimal) "DESTDIR=$(out)";
|
installFlags = lib.optional (!minimal) "dummy_drv_video_ladir=$(out)/lib/dri";
|
||||||
|
postInstall = "";
|
||||||
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)
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.freedesktop.org/wiki/Software/vaapi;
|
homepage = http://www.freedesktop.org/wiki/Software/vaapi;
|
||||||
|
|
Loading…
Reference in New Issue