Skip to content

cudaPackages.buildRedist: do not require config.cudaSupport to be enabled - #457220

Merged
ConnorBaker merged 1 commit into
NixOS:masterfrom
Naxdy:work/remove-cuda-assertion
Oct 31, 2025
Merged

ConnorBaker merged 1 commit into
NixOS:masterfrom
Naxdy:work/remove-cuda-assertion

Conversation

@Naxdy

@Naxdy Naxdy commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

The rationale behind this change has been comprehensively outlined in #457218

Summary: Setting config.cudaSupport globally is undesirable in most scenarios, due to the immense amount of rebuilds it causes (even for unrelated packages), therefore we should not require users to do so.

Additionally, this derivation prevents the installation of certain packages in nixpkgs by default (e.g. nvtopPackages.full), making these difficult to install on non-NixOS systems (especially for inexperienced users), despite being fully functional when built.

Derivations should instead ensure that their dependencies are built with the required support.

Closes #457218
Closes #456940
Closes #456928

Things done

Packages built: nvtopPackages.full

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

cc @ConnorBaker

Add a 👍 reaction to pull requests you find important.

@Naxdy
Naxdy requested a review from ConnorBaker October 31, 2025 12:08
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: cuda Parallel computing platform and API labels Oct 31, 2025
@Naxdy

Naxdy commented Oct 31, 2025

Copy link
Copy Markdown
Contributor Author

If merged, this directly affects #456510 and will therefore either necessitate a doc change (if #456510 is merged first), or a small revision.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 31, 2025
@ConnorBaker

Copy link
Copy Markdown
Contributor

The @NixOS/cuda-maintainers have decided to merge this to prevent breakage in the short term. We will evaluate reintroduction at a later time.

@ConnorBaker
ConnorBaker added this pull request to the merge queue Oct 31, 2025
Merged via the queue into NixOS:master with commit ea77ad3 Oct 31, 2025
@github-project-automation github-project-automation Bot moved this from New to ✅ Done in CUDA Team Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: cuda Parallel computing platform and API 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

Status: ✅ Done

3 participants