diff --git a/pkgs/development/libraries/intel-media-driver/default.nix b/pkgs/development/libraries/intel-media-driver/default.nix new file mode 100644 index 000000000000..45a90ff520f9 --- /dev/null +++ b/pkgs/development/libraries/intel-media-driver/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub +, cmake, pkgconfig +, libva, libpciaccess, intel-gmmlib, libX11 +}: + +stdenv.mkDerivation rec { + name = "intel-media-driver-${version}"; + version = "18.3.0"; + + src = fetchFromGitHub { + owner = "intel"; + repo = "media-driver"; + rev = "intel-media-${version}"; + sha256 = "15kcyg9ss2v1bbw6yvxqb833h1vs0h659n8ix0x5x03cfm1wsi57"; + }; + + cmakeFlags = [ "-DINSTALL_DRIVER_SYSCONF=OFF" ]; + + preConfigure = '' + cmakeFlags="$cmakeFlags -DLIBVA_DRIVERS_PATH=$out/lib/dri" + ''; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7291ebe38870..2e31e6538ce3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10255,6 +10255,8 @@ with pkgs; intel-gmmlib = callPackage ../development/libraries/intel-gmmlib { }; + intel-media-driver = callPackage ../development/libraries/intel-media-driver { }; + intltool = callPackage ../development/tools/misc/intltool { }; ios-cross-compile = callPackage ../development/compilers/ios-cross-compile/9.2.nix {};