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