clmagma: move env variable(s) into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-19 15:54:40 +01:00
parent 7e878a2157
commit d702f9dd00
+7 -5
View File
@@ -60,12 +60,14 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
MKLROOT = "${mkl}";
clBLAS = "${clblas}";
env = {
MKLROOT = mkl;
clBLAS = clblas;
# Otherwise build looks for it in /run/opengl-driver/etc/OpenCL/vendors,
# which is not available.
OPENCL_VENDOR_PATH = "${intel-ocl}/etc/OpenCL/vendors";
# Otherwise build looks for it in /run/opengl-driver/etc/OpenCL/vendors,
# which is not available.
OPENCL_VENDOR_PATH = "${intel-ocl}/etc/OpenCL/vendors";
};
preBuild = ''
# By default it tries to use GPU, and thus fails for CPUs