2021-01-21 17:00:13 +00: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";
|
2022-03-08 19:02:44 +00:00
|
|
|
version = "1.5";
|
2013-02-02 15:18:48 +00:00
|
|
|
|
2010-12-27 18:30:52 +00:00
|
|
|
src = fetchurl {
|
2020-02-15 10:50:43 +00:00
|
|
|
url = "https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/${version}/${pname}-${version}.tar.bz2";
|
2022-03-08 19:02:44 +00:00
|
|
|
sha256 = "sha256-pdUKQrjCiP68BxUatkOsjeBqGERpZcckH4m06BCCGRM=";
|
2010-12-27 18:30:52 +00:00
|
|
|
};
|
2020-02-15 10:50:43 +00:00
|
|
|
patches = [ ./installdir.patch ];
|
2010-12-27 18:30:52 +00:00
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2015-10-06 15:34:08 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
2018-12-31 03:40:47 +00:00
|
|
|
buildInputs = with xorg; [ xorgproto libXext ];
|
2012-07-02 14:14:14 +00:00
|
|
|
|
2014-07-02 20:30:28 +00:00
|
|
|
propagatedBuildInputs = [ xorg.libX11 ];
|
2013-11-16 20:25:57 +00:00
|
|
|
|
2022-10-06 16:38:53 +00:00
|
|
|
mesonFlags = lib.optionals stdenv.isLinux
|
2020-02-15 10:50:43 +00:00
|
|
|
[ "-Dmoduledir=${mesa.drivers.driverLink}/lib/vdpau" ];
|
2016-01-24 23:56:41 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lX11";
|
2019-02-06 00:27:39 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2021-11-09 22:52:04 +00:00
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/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 08:42:31 +00:00
|
|
|
license = licenses.mit; # expat version
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.vcunat ];
|
2010-12-27 18:30:52 +00:00
|
|
|
};
|
|
|
|
}
|