mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
36 lines
954 B
Nix
36 lines
954 B
Nix
{ stdenv, fetchFromGitHub
|
|
, cmake, pkgconfig
|
|
, libva, libpciaccess, intel-gmmlib, libX11
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "intel-media-driver";
|
|
version = "19.4.0r";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intel";
|
|
repo = "media-driver";
|
|
rev = "intel-media-${version}";
|
|
sha256 = "0gnd82z0wgiw5my1hnqlk9hcjjqpsgasqq5xcdrbkfa40wpb132a";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DINSTALL_DRIVER_SYSCONF=OFF"
|
|
"-DLIBVA_DRIVERS_PATH=${placeholder "out"}/lib/dri"
|
|
# Works only on hosts with suitable CPUs.
|
|
"-DMEDIA_RUN_TEST_SUITE=OFF"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|