2021-01-22 00:00:13 +07:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, xorg, mesa, meson, ninja }:
|
2010-12-27 18:30:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libvdpau";
|
2020-04-12 19:13:03 +00:00
|
|
|
version = "1.4";
|
2013-02-02 16:18:48 +01:00
|
|
|
|
2010-12-27 18:30:52 +00:00
|
|
|
src = fetchurl {
|
2020-02-15 11:50:43 +01:00
|
|
|
url = "https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/${version}/${pname}-${version}.tar.bz2";
|
2020-04-12 19:13:03 +00:00
|
|
|
sha256 = "0c1zsfr6ypzwv8g9z50kdahpb7pirarq4z8avqqyyma5b9684n22";
|
2010-12-27 18:30:52 +00:00
|
|
|
};
|
2020-02-15 11:50:43 +01:00
|
|
|
patches = [ ./installdir.patch ];
|
2010-12-27 18:30:52 +00:00
|
|
|
|
2016-08-29 03:30:01 +03:00
|
|
|
outputs = [ "out" "dev" ];
|
2015-10-06 17:34:08 +02:00
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
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
|
|
|
|
2021-01-22 00:00:13 +07:00
|
|
|
mesonFlags = lib.optional stdenv.isLinux
|
2020-02-15 11:50:43 +01:00
|
|
|
[ "-Dmoduledir=${mesa.drivers.driverLink}/lib/vdpau" ];
|
2016-01-25 02:56:41 +03:00
|
|
|
|
2021-01-22 00:00:13 +07:00
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lX11";
|
2019-02-05 19:27:39 -05:00
|
|
|
|
2021-01-22 00:00:13 +07:00
|
|
|
meta = with lib; {
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://people.freedesktop.org/~aplattner/vdpau/";
|
2010-12-27 18:30:52 +00: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 18:30:52 +00:00
|
|
|
};
|
|
|
|
}
|