slurm service: robust reference to slurm bin output

This commit is contained in:
Joachim Fasting 2016-05-28 01:30:19 +02:00
parent c420d0fb28
commit b05bb30361
No known key found for this signature in database
GPG Key ID: 4330820E1E04DCF4

View File

@ -111,7 +111,7 @@ in
builder = pkgs.writeText "builder.sh" '' builder = pkgs.writeText "builder.sh" ''
source $stdenv/setup source $stdenv/setup
mkdir -p $out/bin mkdir -p $out/bin
find ${cfg.package}/bin -type f -executable | while read EXE find ${getBin cfg.package}/bin -type f -executable | while read EXE
do do
exename="$(basename $EXE)" exename="$(basename $EXE)"
wrappername="$out/bin/$exename" wrappername="$out/bin/$exename"