[NixOS] Add some buildInputs to nvidia-container-toolkit overlay
This commit is contained in:
@@ -14,6 +14,14 @@ final: prev: {
|
|||||||
dontPatchShell = true;
|
dontPatchShell = true;
|
||||||
nativeBuildInputs = [ final.installShellFiles ] ++ final.lib.optionals final.stdenv.hostPlatform.isLinux [ final.makeWrapper ];
|
nativeBuildInputs = [ final.installShellFiles ] ++ final.lib.optionals final.stdenv.hostPlatform.isLinux [ final.makeWrapper ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
prev.nvidia-container-toolkit
|
||||||
|
prev.nvidia-container-toolkit.tools
|
||||||
|
final.glibc
|
||||||
|
final.coreutils
|
||||||
|
final.bash
|
||||||
|
];
|
||||||
|
|
||||||
# Create wrapper scripts for each set of binaries
|
# Create wrapper scripts for each set of binaries
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
# --- Wrap binaries from the main output of the original toolkit ---
|
# --- Wrap binaries from the main output of the original toolkit ---
|
||||||
@@ -61,6 +69,8 @@ final: prev: {
|
|||||||
cat > wrapper-tools/$exe <<EOF
|
cat > wrapper-tools/$exe <<EOF
|
||||||
#!${final.bash}/bin/bash
|
#!${final.bash}/bin/bash
|
||||||
|
|
||||||
|
echo "STARTING TOOL"
|
||||||
|
|
||||||
if [ "\$(id -u)" -eq 0 ]; then
|
if [ "\$(id -u)" -eq 0 ]; then
|
||||||
mkdir -p /var/log/nvidia-container-toolkit
|
mkdir -p /var/log/nvidia-container-toolkit
|
||||||
chown root:users /var/log/nvidia-container-toolkit
|
chown root:users /var/log/nvidia-container-toolkit
|
||||||
|
|||||||
Reference in New Issue
Block a user