develop: support for srun

This commit is contained in:
2020-12-02 13:38:43 +01:00
parent f87d830218
commit df1f22c122
2 changed files with 13 additions and 4 deletions

View File

@@ -33,10 +33,13 @@ stdenv.mkDerivation {
export TEMP=/tmp
export LANG=en_US.UTF-8
export TERM=linux
source ${stdenv}/setup
# Access to bin and nix tools for srun, as it keeps the PATH
export "PATH=\$PATH:/bin"
export "PATH=$PATH:/gpfs/projects/bsc15/nix/bin"
if [[ -z "\$@" ]]; then
exec ${bashInteractive}/bin/bash
else