Skip to content

cudaPackages: move __attrsFailEvaluation to allow deeper inspection#324685

Merged
ConnorBaker merged 2 commits intoNixOS:masterfrom
philiptaron:__attrsFailEvaluation/cuda
Jul 18, 2024
Merged

cudaPackages: move __attrsFailEvaluation to allow deeper inspection#324685
ConnorBaker merged 2 commits intoNixOS:masterfrom
philiptaron:__attrsFailEvaluation/cuda

Conversation

@philiptaron
Copy link
Contributor

Description of changes

The test (nix-build pkgs/test/release/default.nix) continues to pass.

These lines were added in #269356.

New derivations reported: https://gist.github.com/philiptaron/f144fd6dc6a76e0f40dc52b5f489d219

Things done

  • Tested, as applicable:
    • nix-build pkgs/test/release/default.nix
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 4, 2024
@philiptaron philiptaron force-pushed the __attrsFailEvaluation/cuda branch from 9fe4a24 to 31e3a94 Compare July 17, 2024 18:51
@ConnorBaker ConnorBaker merged commit ef3c8f0 into NixOS:master Jul 18, 2024
Comment on lines +52 to +54
# Without this, if we use `final.callPackage` and a package accepts `cudaPackages` as an
# argument, it's provided with `cudaPackages` from the top-level scope, which is not what we
# want. We want to provide the `cudaPackages` from the final scope -- that is, the *current*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is fine within the scope of the PR, but the comment is misleading because packages under cudaPackages should not ask for the entire scope as an argment, they should ask for individual components CC @ConnorBaker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants