diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-01-25 02:56:41 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-01-26 13:42:39 +0300 |
commit | 768f7d19b54843db8c44030f34d237c013973e40 (patch) | |
tree | 0c85310d0151e412bba7ca9e2f126fd0555c8e22 /pkgs/development/libraries/libvdpau | |
parent | 1b95212a6976dc7b8e3a8e80b8d5fc9cb6ebaa71 (diff) | |
download | nixlib-768f7d19b54843db8c44030f34d237c013973e40.tar nixlib-768f7d19b54843db8c44030f34d237c013973e40.tar.gz nixlib-768f7d19b54843db8c44030f34d237c013973e40.tar.bz2 nixlib-768f7d19b54843db8c44030f34d237c013973e40.tar.lz nixlib-768f7d19b54843db8c44030f34d237c013973e40.tar.xz nixlib-768f7d19b54843db8c44030f34d237c013973e40.tar.zst nixlib-768f7d19b54843db8c44030f34d237c013973e40.zip |
libvdpau: use OpenGL drivers link directory
Diffstat (limited to 'pkgs/development/libraries/libvdpau')
-rw-r--r-- | pkgs/development/libraries/libvdpau/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libvdpau/default.nix b/pkgs/development/libraries/libvdpau/default.nix index 6c5d5a91ad88..f38cc51f6c24 100644 --- a/pkgs/development/libraries/libvdpau/default.nix +++ b/pkgs/development/libraries/libvdpau/default.nix @@ -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)"; |