mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
36 lines
863 B
Nix
36 lines
863 B
Nix
{ stdenv, fetchFromGitHub, pkgconfig
|
|
, libdrm, libva, libX11, libXext, libXfixes, wayland, meson, ninja
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libva-utils-${version}";
|
|
inherit (libva) version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "01org";
|
|
repo = "libva-utils";
|
|
rev = version;
|
|
sha256 = "1yk9bg1wg4nqva3l01s6bghcvc3hb02gp62p1sy5qk0r9mn5kpik";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
|
|
|
buildInputs = [ libdrm libva libX11 libXext libXfixes wayland ];
|
|
|
|
mesonFlags = [
|
|
"-Ddrm=true"
|
|
"-Dx11=true"
|
|
"-Dwayland=true"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "VAAPI tools: Video Acceleration API";
|
|
homepage = http://www.freedesktop.org/wiki/Software/vaapi;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ garbas ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|