You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tests.cuda fails to evaluate: "Function called without required argument "backendStdenv" #280377
Noticed the test evaluation failure when explored nixpkgs attributes for obvious instantiation mistakes.
The reproducer:
$ nix-instantiate '<nixpkgs>' -A tests.cuda
error:
… while calling the 'abort' builtin
at lib/customisation.nix:210:13:
209| # which is especially relevant with allowAliases = false
210| else abort "lib.customisation.callPackageWith: ${error}";
| ^
211|
error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "backendStdenv" at pkgs/test/cuda/cuda-library-samples/generic.nix:3'
The immediate error is that this should be cudaPackages_XX.callPackage, not pkgs.callPackage. That said though, the samples are already part of the cudaPackages scope, e.g. cudaPackages_11_8.cuda-library-samples. As mentioned in the referenced issue, we should move them out of pkgs/tests bc right now cudaPackages weirdly depend on pkgs/tests and they shouldn't
Activity
SomeoneSerge commentedon Jan 11, 2024
Oh, again, CC #279684 #279703 @NixOS/cuda-maintainers
The immediate error is that this should be
cudaPackages_XX.callPackage, notpkgs.callPackage. That said though, the samples are already part of thecudaPackagesscope, e.g.cudaPackages_11_8.cuda-library-samples. As mentioned in the referenced issue, we should move them out ofpkgs/testsbc right nowcudaPackagesweirdly depend onpkgs/testsand they shouldn'tSomeoneSerge commentedon Jan 24, 2024
#280386