2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
2020-06-18 07:06:33 +00:00
|
|
|
, cmake, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, libva, libpciaccess, intel-gmmlib, libX11
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "intel-media-driver";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "20.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "media-driver";
|
|
|
|
rev = "intel-media-${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "02a9wm7cz0nkpyfwic4a0dfm9bx1d2sybgh5rv0c618pl41mla33";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DINSTALL_DRIVER_SYSCONF=OFF"
|
|
|
|
"-DLIBVA_DRIVERS_PATH=${placeholder "out"}/lib/dri"
|
|
|
|
# Works only on hosts with suitable CPUs.
|
|
|
|
"-DMEDIA_RUN_TEST_SUITE=OFF"
|
|
|
|
];
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ libva libpciaccess intel-gmmlib libX11 ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
description = "Intel Media Driver for VAAPI — Broadwell+ iGPUs";
|
|
|
|
longDescription = ''
|
|
|
|
The Intel Media Driver for VAAPI is a new VA-API (Video Acceleration API)
|
|
|
|
user mode driver supporting hardware accelerated decoding, encoding, and
|
|
|
|
video post processing for GEN based graphics hardware.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/intel/media-driver";
|
2020-06-18 07:06:33 +00:00
|
|
|
changelog = "https://github.com/intel/media-driver/releases/tag/intel-media-${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ bsd3 mit ];
|
|
|
|
platforms = platforms.linux;
|
2020-06-18 07:06:33 +00:00
|
|
|
maintainers = with maintainers; [ primeos jfrankenau ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|