cudaPackages_11_0.autoAddCudaCompatRunpath.libcudaPath: fix the eval#406668
Conversation
|
There was a problem hiding this comment.
Hm I thought this should've been sufficient: https://github.com/NixOS/nixpkgs/pull/405031/files#diff-f0756e113cff4d541c62e50496aca47492801463cb75266b75732935906ffe63R19-R27
There was a problem hiding this comment.
Tldr: we've had this exact patch before, I'm hoping to eliminate this hacks by setting the platforms right
|
If a package is marked as broken or is on an unsupported platform, should we expect arbitrary attributes of that package to evaluate? |
|
As I mention in #405031, my understanding is we only ever enforced that CI must pass (tautology intended), and CI only ever cared about eval errors in "supported" packages. I'm all for adopting a stricter convention at least at the We've nominally adopted the rule that namesets of For now I propose we do an ugly fix along the lines of #406207 (comment) More generally, one goal of #406740 is to fix a static set of names guaranteed to exist across all cudaPackages instances |
I don't think so -- there are plenty of packages in-tree that fail to eval under those two cases. FWIW: my CI work (which I expect to PR some time today) catches the issue that #406207 fixed, but not this one, because it has no supported platforms. |
|
@trofi If I may ask, how did you even find this if you're not just blanket evaling everything while allowing broken and unsupported platforms? |
|
blanket evaling everything
If not that, we should totally start doing so, and recording the results
in some public index
…On 13/05/2025 18.22, Winter wrote:
blanket evaling everything
--
SomeoneSerge <https://someonex.net>
|
I blanket-eval everything :) https://trofi.github.io/posts/309-listing-all-nixpkgs-packages.html I usually run |
|
Note that normally packages on unsupported platform generate the exceptions that you can catch (and ignore) with |
That's a good distinction! Anyway, if you're ok with the alternative "fix" I pushed feel free to squash & merge |
0e1df15 to
6a84a15
Compare
|
You change fixes eval for me as well. Dropped my patch. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/5561 |
Addresses #405031 (comment). Without the change direct access to the attribute fails to eval as:
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.