cudaPackages: eliminate exceptions#276800
Conversation
There was a problem hiding this comment.
We can make this warn "Unknown architecture: ${cap}" "sm_${...}" later. Right now I just want cleaner eval
9fb3b38 to
95a3b0d
Compare
as they break common nixpkgs tools like lib.meta, cf. NixOS#276795
95a3b0d to
cf21437
Compare
|
Some of the outPaths have changed because the "unsupported" packages now have more The solutions here are highly sub-optimal. There are upcoming refactors to the evalModules bit (incl. in Connor's cross-compilation PR) which might address this properly. It took some effort to satisfy Ofborg here without more global changes. Ofborg happy, and thanks to @aidalgol for the review. Merging this so we can start using |
| }; | ||
|
|
||
| meta = with lib; { | ||
| badPlatforms = lib.optionals cudaSupport lib.platforms.darwin; |
There was a problem hiding this comment.
This was required because of the "missing attribute cudnn_8_6"
|
This indirectly broke the channel build, fix in #279684 |
This very weirdly broke the channel evaluation: https://hydra.nixos.org/build/245871962/nixlog/1 It appears that this attribute is only evaluated by Hydra, _not_ by ofborg. So this wouldn't have been detected by CI anyways in the PR that introduced the problem: #276800. However, due to #271123 (comment), the channel only broke once that was fixed with #278777 Whether the fix is good, I don't know, but the failing-on-darwin attribute doesn't exist anymore with this commit, making the tarball build succeed again: nix-build pkgs/top-level/release.nix -A tarball
as they break common nixpkgs tools like lib.meta,
cf. #276795
@NixOS/cuda-maintainers
Description of changes
Before:
After:
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.