mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
libvdpau: use OpenGL drivers link directory
This commit is contained in:
parent
1b95212a69
commit
768f7d19b5
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, xorg }:
|
||||
{ stdenv, fetchurl, pkgconfig, xorg, mesa_noglu }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libvdpau-1.1.1";
|
||||
@ -12,6 +12,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
propagatedBuildInputs = [ xorg.libX11 ];
|
||||
|
||||
configureFlags = [ "--with-module-dir=${mesa_noglu.driverLink}/lib/vdpau" ];
|
||||
|
||||
installFlags = [ "DESTDIR=$(out)" ];
|
||||
|
||||
postInstall = ''
|
||||
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; {
|
||||
homepage = http://people.freedesktop.org/~aplattner/vdpau/;
|
||||
description = "Library to use the Video Decode and Presentation API for Unix (VDPAU)";
|
||||
|
Loading…
Reference in New Issue
Block a user