···
+
intel-graphics-compiler,
+
inherit (lib) cmakeBool;
+
stdenv.mkDerivation rec {
+
# https://github.com/intel/compute-runtime/blob/master/LEGACY_PLATFORMS.md
+
pname = "intel-compute-runtime-legacy1";
+
version = "24.35.30872.32"; # 24.35.30872.x is the last series to support Gen8, Gen9 and Gen11 GPU support
+
src = fetchFromGitHub {
+
repo = "compute-runtime";
+
hash = "sha256-POImMopbrhVXuSx2MQ9mwPNKQx7BljyikKhu6M4hZME=";
+
intel-graphics-compiler
+
"-DIGC_DIR=${intel-graphics-compiler}"
+
"-DOCL_ICD_VENDORDIR=${placeholder "out"}/etc/OpenCL/vendors"
+
# The install script assumes this path is relative to CMAKE_INSTALL_PREFIX
+
"-DCMAKE_INSTALL_LIBDIR=lib"
+
(cmakeBool "NEO_LEGACY_PLATFORMS_SUPPORT" true)
+
# causes redefinition of _FORTIFY_SOURCE
+
hardeningDisable = [ "fortify3" ];
+
# Avoid clash with intel-ocl
+
mv $out/etc/OpenCL/vendors/intel.icd $out/etc/OpenCL/vendors/intel-neo.icd
+
mv -t $drivers/lib $out/lib/libze_intel*
+
patchelf --set-rpath ${
+
intel-graphics-compiler
+
$out/lib/intel-opencl/libigdrcl.so
+
passthru.updateScript = gitUpdater {
+
rev-prefix = "24.35.30872.";
+
description = "Intel Graphics Compute Runtime for OpenCL with support for Gen8, Gen9 and Gen11 GPUs.d";
+
homepage = "https://github.com/intel/compute-runtime";
+
changelog = "https://github.com/intel/compute-runtime/releases/tag/${version}";
+
license = licenses.mit;
+
platforms = [ "x86_64-linux" ];
+
maintainers = with maintainers; [ fleaz ];