singularity-tools: fix singularity run with bashInteractive

This commit is contained in:
Yueh-Shun Li 2024-08-09 09:07:46 +00:00
parent ae8017ec0b
commit c2fa248bca

View File

@ -10,7 +10,7 @@
e2fsprogs, e2fsprogs,
util-linux, util-linux,
# Build inputs # Build inputs
bash, bashInteractive,
runtimeShell, runtimeShell,
singularity, singularity,
storeDir ? builtins.storeDir, storeDir ? builtins.storeDir,
@ -105,7 +105,7 @@ rec {
# Create runScript and link shell # Create runScript and link shell
if [ ! -e bin/sh ]; then if [ ! -e bin/sh ]; then
ln -s ${runtimeShell} bin/sh ln -s ${lib.getExe bashInteractive} bin/sh
fi fi
mkdir -p .singularity.d mkdir -p .singularity.d
ln -s ${runScriptFile} .singularity.d/runscript ln -s ${runScriptFile} .singularity.d/runscript