1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:27:11 +00:00
nixpkgs/pkgs/development/libraries/libva/default.nix
William A. Kennington III 5fb86ada5a libva: Make mesa optional
2015-03-28 13:52:03 -07:00

24 lines
704 B
Nix

{ stdenv, fetchurl, libX11, pkgconfig, libXext, libdrm, libXfixes, wayland, libffi
, mesa ? null
}:
stdenv.mkDerivation rec {
name = "libva-1.5.1";
src = fetchurl {
url = "http://www.freedesktop.org/software/vaapi/releases/libva/${name}.tar.bz2";
sha256 = "01d01mm9fgpwzqycmjjcj3in3vvzcibi3f64icsw2sksmmgb4495";
};
buildInputs = [ libX11 libXext pkgconfig libdrm libXfixes wayland libffi mesa ];
configureFlags = stdenv.lib.optional (mesa != null) "--enable-glx";
meta = with stdenv.lib; {
homepage = http://www.freedesktop.org/wiki/Software/vaapi;
license = licenses.mit;
description = "VAAPI library: Video Acceleration API";
platforms = platforms.unix;
};
}