From 7dde9fa428355b00e1fe1aaa05faab40ac84ff9a Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 16 Mar 2024 20:29:17 +0000 Subject: [PATCH] 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| ''; --- pkgs/applications/virtualization/singularity/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/singularity/generic.nix b/pkgs/applications/virtualization/singularity/generic.nix index 85992e2abce9..d16b88adece3 100644 --- a/pkgs/applications/virtualization/singularity/generic.nix +++ b/pkgs/applications/virtualization/singularity/generic.nix @@ -300,7 +300,7 @@ in let 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 runCommand "run-apptainer-cuda-saxpy"