2019-05-28 21:09:34 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, xorg, mesa }:
|
2010-12-27 19:30:52 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-17 16:47:55 +01:00
|
|
|
name = "libvdpau-${version}";
|
2019-02-28 20:15:21 +01:00
|
|
|
version = "1.2";
|
2013-02-02 16:18:48 +01:00
|
|
|
|
2010-12-27 19:30:52 +01:00
|
|
|
src = fetchurl {
|
2019-02-28 20:15:21 +01:00
|
|
|
url = "https://gitlab.freedesktop.org/vdpau/libvdpau/uploads/14b620084c027d546fa0b3f083b800c6/${name}.tar.bz2";
|
|
|
|
sha256 = "6a499b186f524e1c16b4f5b57a6a2de70dfceb25c4ee546515f26073cd33fa06";
|
2010-12-27 19:30:52 +01:00
|
|
|
};
|
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2015-10-06 17:34:08 +02:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-12-31 04:40:47 +01:00
|
|
|
buildInputs = with xorg; [ xorgproto libXext ];
|
2012-07-02 16:14:14 +02:00
|
|
|
|
2014-07-02 22:30:28 +02:00
|
|
|
propagatedBuildInputs = [ xorg.libX11 ];
|
2013-11-16 21:25:57 +01:00
|
|
|
|
2016-02-07 14:23:24 +01:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.isLinux
|
2019-05-28 21:09:34 +02:00
|
|
|
"--with-module-dir=${mesa.drivers.driverLink}/lib/vdpau";
|
2016-01-25 00:56:41 +01:00
|
|
|
|
2019-02-06 01:27:39 +01:00
|
|
|
NIX_LDFLAGS = if stdenv.isDarwin then "-lX11" else null;
|
|
|
|
|
2016-02-02 04:56:56 +01:00
|
|
|
installFlags = [ "moduledir=$(out)/lib/vdpau" ];
|
2016-01-25 00:56:41 +01:00
|
|
|
|
2014-07-02 22:30:28 +02:00
|
|
|
meta = with stdenv.lib; {
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://people.freedesktop.org/~aplattner/vdpau/;
|
2010-12-27 19:30:52 +01:00
|
|
|
description = "Library to use the Video Decode and Presentation API for Unix (VDPAU)";
|
2014-12-25 09:42:31 +01:00
|
|
|
license = licenses.mit; # expat version
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.vcunat ];
|
2010-12-27 19:30:52 +01:00
|
|
|
};
|
|
|
|
}
|