2019-02-01 20:50:21 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig
|
|
|
|
, libdrm, libva, libX11, libXext, libXfixes, wayland, meson, ninja
|
2017-12-15 21:10:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libva-utils";
|
2017-12-15 21:10:12 +00:00
|
|
|
inherit (libva) version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-04-23 18:51:52 +00:00
|
|
|
owner = "intel";
|
2017-12-15 21:10:12 +00:00
|
|
|
repo = "libva-utils";
|
|
|
|
rev = version;
|
2020-04-23 18:51:52 +00:00
|
|
|
sha256 = "13a0dccphi4cpr2cx45kg4djxsssi3d1fcjrkx27b16xiayp5lx9";
|
2017-12-15 21:10:12 +00:00
|
|
|
};
|
|
|
|
|
2019-02-01 20:50:21 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
2017-12-15 21:10:12 +00:00
|
|
|
|
2019-02-01 20:50:21 +00:00
|
|
|
buildInputs = [ libdrm libva libX11 libXext libXfixes wayland ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Ddrm=true"
|
|
|
|
"-Dx11=true"
|
|
|
|
"-Dwayland=true"
|
|
|
|
];
|
2017-12-15 21:10:12 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-23 18:51:52 +00:00
|
|
|
description = "A collection of utilities and examples for VA-API";
|
|
|
|
longDescription = ''
|
|
|
|
libva-utils is a collection of utilities and examples to exercise VA-API
|
|
|
|
in accordance with the libva project.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/intel/libva-utils";
|
|
|
|
changelog = "https://raw.githubusercontent.com/intel/libva-utils/${version}/NEWS";
|
2017-12-15 21:10:12 +00:00
|
|
|
license = licenses.mit;
|
2020-04-23 18:51:52 +00:00
|
|
|
maintainers = with maintainers; [ primeos ];
|
2017-12-15 21:10:12 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|