apptainer.gpuChecks.saxpy: fix the eval

Without the change the eval fails as:

    $ nix build --no-link -f. apptainer.gpuChecks.saxpy
    error:
           error: attribute 'image-saxpy' missing
           at pkgs/applications/virtualization/singularity/generic.nix:303:72:
              302|                 ''
              303|                   ${lib.getExe finalAttrs.finalPackage} exec --nv $@ ${finalAttrs.passthru.tests.image-saxpy} saxpy
                 |                                                                        ^
              304|                 '';
This commit is contained in:
Sergei Trofimovich 2024-03-16 20:29:17 +00:00
parent 6165a71162
commit 7dde9fa428

View file

@ -300,7 +300,7 @@ in
let let
unwrapped = writeShellScriptBin "apptainer-cuda-saxpy" unwrapped = writeShellScriptBin "apptainer-cuda-saxpy"
'' ''
${lib.getExe finalAttrs.finalPackage} exec --nv $@ ${finalAttrs.passthru.tests.image-saxpy} saxpy ${lib.getExe finalAttrs.finalPackage} exec --nv $@ ${finalAttrs.passthru.gpuChecks.image-saxpy} saxpy
''; '';
in in
runCommand "run-apptainer-cuda-saxpy" runCommand "run-apptainer-cuda-saxpy"