nvidia-docker: init at 2.0.3
nvidia_x11 and persistenced were modified to provide binaries which can be mounted inside a docker-container to be executed there. most ldconfig-based discovery of bundled nvidia libraries is patched out ldconfig itself is patched to be able to deal with patchelf'ed libraries See https://sourceware.org/bugzilla/show_bug.cgi?id=23964
This commit is contained in:
@@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
|
||||
installFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
postFixup = ''
|
||||
# Save a copy of persistenced for mounting in containers
|
||||
mkdir $out/origBin
|
||||
cp $out/{bin,origBin}/nvidia-persistenced
|
||||
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $out/origBin/nvidia-persistenced
|
||||
|
||||
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/nvidia-persistenced):${nvidia_x11}/lib" \
|
||||
$out/bin/nvidia-persistenced
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user