File tree Expand file tree Collapse file tree
pkgs/development/cuda-modules/generic-builders Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,13 +170,15 @@ backendStdenv.mkDerivation (
170170 ''
171171 # Handle the existence of libPath, which requires us to re-arrange the lib directory
172172 + strings . optionalString ( libPath != null ) ''
173- if [[ ! -d "${ libPath } " ]] ; then
174- echo "${ finalAttrs . pname } : ${ libPath } does not exist, only found:" >&2
175- find "$(dirname ${ libPath } )"/ -maxdepth 1 >&2
173+ full_lib_path="lib/${ libPath } "
174+ if [[ ! -d "$full_lib_path" ]] ; then
175+ echo "${ finalAttrs . pname } : '$full_lib_path' does not exist, only found:" >&2
176+ find lib/ -mindepth 1 -maxdepth 1 >&2
176177 echo "This release might not support your CUDA version" >&2
177178 exit 1
178179 fi
179- mv "lib/${ libPath } " lib_new
180+ echo "Making libPath '$full_lib_path' the root of lib" >&2
181+ mv "$full_lib_path" lib_new
180182 rm -r lib
181183 mv lib_new lib
182184 ''
You can’t perform that action at this time.
0 commit comments