1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

libvdpau: use OpenGL drivers link directory

This commit is contained in:
Nikolay Amiantov 2016-01-25 02:56:41 +03:00
parent 1b95212a69
commit 768f7d19b5

View file

@ -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)";