diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libvdpau')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libvdpau/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libvdpau/default.nix b/nixpkgs/pkgs/development/libraries/libvdpau/default.nix new file mode 100644 index 000000000000..e6a57f1e38c4 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libvdpau/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, pkgconfig, xorg, mesa }: + +stdenv.mkDerivation rec { + pname = "libvdpau"; + version = "1.2"; + + src = fetchurl { + url = "https://gitlab.freedesktop.org/vdpau/libvdpau/uploads/14b620084c027d546fa0b3f083b800c6/${pname}-${version}.tar.bz2"; + sha256 = "6a499b186f524e1c16b4f5b57a6a2de70dfceb25c4ee546515f26073cd33fa06"; + }; + + outputs = [ "out" "dev" ]; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = with xorg; [ xorgproto libXext ]; + + propagatedBuildInputs = [ xorg.libX11 ]; + + configureFlags = stdenv.lib.optional stdenv.isLinux + "--with-module-dir=${mesa.drivers.driverLink}/lib/vdpau"; + + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lX11"; + + 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 ]; + }; +} |