about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libvdpau
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libvdpau')
-rw-r--r--nixpkgs/pkgs/development/libraries/libvdpau/default.nix31
1 files changed, 31 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..dd3703e6aebd
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libvdpau/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, pkgconfig, xorg, libGL_driver }:
+
+stdenv.mkDerivation rec {
+  name = "libvdpau-${version}";
+  version = "1.1.1";
+
+  src = fetchurl {
+    url = "https://people.freedesktop.org/~aplattner/vdpau/${name}.tar.bz2";
+    sha256 = "857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736";
+  };
+
+  outputs = [ "out" "dev" ];
+
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = with xorg; [ xorgproto libXext ];
+
+  propagatedBuildInputs = [ xorg.libX11 ];
+
+  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 ];
+  };
+}