2018-11-07 16:53:57 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, cmake, pkgconfig
|
|
|
|
, libva, libpciaccess, intel-gmmlib, libX11
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "intel-media-driver";
|
2019-07-15 18:17:07 +01:00
|
|
|
version = "19.2";
|
2018-11-07 16:53:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "media-driver";
|
|
|
|
rev = "intel-media-${version}";
|
2019-07-15 18:17:07 +01:00
|
|
|
sha256 = "118cg1grzm62lppaygvh7mgxn23bicjkwjwpxhbyqs9g6yhdj3p8";
|
2018-11-07 16:53:57 +00:00
|
|
|
};
|
|
|
|
|
2019-02-01 01:00:21 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DINSTALL_DRIVER_SYSCONF=OFF"
|
|
|
|
"-DLIBVA_DRIVERS_PATH=${placeholder "out"}/lib/dri"
|
2019-06-28 14:54:01 +01:00
|
|
|
# Works only on hosts with suitable CPUs.
|
|
|
|
"-DMEDIA_RUN_TEST_SUITE=OFF"
|
2019-02-01 01:00:21 +00:00
|
|
|
];
|
2018-11-07 16:53:57 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ libva libpciaccess intel-gmmlib libX11 ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/intel/media-driver;
|
|
|
|
license = with licenses; [ bsd3 mit ];
|
|
|
|
description = "Intel Media Driver for VAAPI — Broadwell+ iGPUs";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
|
|
};
|
|
|
|
}
|