2018-11-07 17:53:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, cmake, pkgconfig
|
|
|
|
, libva, libpciaccess, intel-gmmlib, libX11
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "intel-media-driver-${version}";
|
2019-03-27 06:50:40 +01:00
|
|
|
version = "19.1.0";
|
2018-11-07 17:53:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "media-driver";
|
|
|
|
rev = "intel-media-${version}";
|
2019-03-27 06:50:40 +01:00
|
|
|
sha256 = "072ry87h1lds14fqb2sfz3n2sssvacamaxv2gj4nd8agnzbwizn7";
|
2018-11-07 17:53:57 +01:00
|
|
|
};
|
|
|
|
|
2019-02-01 02:00:21 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DINSTALL_DRIVER_SYSCONF=OFF"
|
|
|
|
"-DLIBVA_DRIVERS_PATH=${placeholder "out"}/lib/dri"
|
2019-06-28 15:54:01 +02:00
|
|
|
# Works only on hosts with suitable CPUs.
|
|
|
|
"-DMEDIA_RUN_TEST_SUITE=OFF"
|
2019-02-01 02:00:21 +01:00
|
|
|
];
|
2018-11-07 17:53:57 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|