1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 07:26:54 +00:00
nixpkgs/pkgs/development/libraries/libvdpau/default.nix

32 lines
957 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, xorg, libGL_driver }:
stdenv.mkDerivation rec {
name = "libvdpau-${version}";
version = "1.1.1";
2013-02-02 15:18:48 +00:00
src = fetchurl {
url = "https://people.freedesktop.org/~aplattner/vdpau/${name}.tar.bz2";
sha256 = "857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736";
};
outputs = [ "out" "dev" ];
2015-10-06 16:34:08 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = with xorg; [ dri2proto libXext ];
propagatedBuildInputs = [ xorg.libX11 ];
2013-11-16 20:25:57 +00:00
configureFlags = stdenv.lib.optional stdenv.isLinux
"--with-module-dir=${libGL_driver.driverLink}/lib/vdpau";
installFlags = [ "moduledir=$(out)/lib/vdpau" ];
meta = with stdenv.lib; {
homepage = https://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 ];
};
}