nextflow: fix long run with slurm
Nexflow requires userName, that is obtained from $USER. The nix derivation somehows reset it. Here we wrap nextflow command to force userName to $USER at runtime.
This commit is contained in:
parent
a64a649348
commit
fec44452ab
@ -87,7 +87,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
which
|
||||
]
|
||||
} \
|
||||
--set JAVA_HOME ${openjdk.home}
|
||||
--set JAVA_HOME ${openjdk.home} \
|
||||
--set NXF_OPTS "-Duser.name=\''${USER}"
|
||||
'';
|
||||
|
||||
passthru.tests.default = nixosTests.nextflow;
|
||||
|
Loading…
x
Reference in New Issue
Block a user