mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
9cf445405b
That path isn't meaningful on non-NixOS anyway.
28 lines
868 B
Nix
28 lines
868 B
Nix
{ stdenv, fetchurl, pkgconfig, xorg, mesa_noglu }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libvdpau-1.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://people.freedesktop.org/~aplattner/vdpau/${name}.tar.bz2";
|
|
sha256 = "857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736";
|
|
};
|
|
|
|
buildInputs = with xorg; [ pkgconfig dri2proto libXext ];
|
|
|
|
propagatedBuildInputs = [ xorg.libX11 ];
|
|
|
|
configureFlags = stdenv.lib.optional stdenv.isLinux
|
|
"--with-module-dir=${mesa_noglu.driverLink}/lib/vdpau";
|
|
|
|
installFlags = [ "moduledir=$(out)/lib/vdpau" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://people.freedesktop.org/~aplattner/vdpau/;
|
|
description = "Library to use the Video Decode and Presentation API for Unix (VDPAU)";
|
|
license = licenses.mit; # expat version
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.vcunat ];
|
|
};
|
|
}
|