diff --git a/pkgs/by-name/cl/clmagma/package.nix b/pkgs/by-name/cl/clmagma/package.nix index bfd23cb0bcb5..dbcbd91dc96f 100644 --- a/pkgs/by-name/cl/clmagma/package.nix +++ b/pkgs/by-name/cl/clmagma/package.nix @@ -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