Repository navigation
cudaPackages: use patched patchelf to fix build failures - #575979
Merged
ConnorBaker merged 1 commit intoOct 19, 2026
Merged
Conversation
nixpkgs-ci
Bot
requested review from
a team,
ConnorBaker,
mdaiter and
samuela
October 19, 2026 12:21
ConnorBaker
approved these changes
Oct 19, 2026
attilaolah
added a commit
to attilaolah/dotfiles
that referenced
this pull request
Oct 20, 2026
Backport //github.com/NixOS/nixpkgs/pull/575979 to fix CUDA builds.
attilaolah
added a commit
to attilaolah/dotfiles
that referenced
this pull request
Oct 20, 2026
Backport //github.com/NixOS/nixpkgs/pull/575979 to fix CUDA builds.
attilaolah
added a commit
to attilaolah/dotfiles
that referenced
this pull request
Oct 20, 2026
Backport //github.com/NixOS/nixpkgs/pull/575979 to fix CUDA builds.
basnijholt
added a commit
to basnijholt/dotfiles
that referenced
this pull request
Oct 20, 2026
nixpkgs 09063bd (current nixos-unstable) ships patchelf 0.19.2, which aborts in shiftFile while patching CUDA redists (cuda_sanitizer_api fails on pc) and produces segfaulting nvidia-smi/nvidia-powerd binaries, breaking pc's nvidia-undervolt service. Fixes are NixOS/nixpkgs#575979 (merged to master, not yet in nixos-unstable) and NixOS/nixpkgs#576397 (open). Update again once both reach nixos-unstable.
attilaolah
added a commit
to attilaolah/dotfiles
that referenced
this pull request
Oct 20, 2026
Backport //github.com/NixOS/nixpkgs/pull/575979 to fix CUDA builds.
basnijholt
added a commit
to basnijholt/dotfiles
that referenced
this pull request
Oct 20, 2026
Re-apply the flake input update held back in the previous commit (nixpkgs 09063bd) and fix what it breaks on pc: - patchelf 0.19.2 aborts in shiftFile while patching CUDA redists and writes segfaulting nvidia-smi/nvidia-powerd binaries. Pin CUDA redists (via _cuda.extensions) and the NVIDIA driver to patchelf 0.15.2, like NixOS/nixpkgs#575979; NixOS/nixpkgs#576397 is still open. Each pin disables itself with a warning once its upstream fix is in nixpkgs. - Build CUDA kernels for sm_86 only (cudaCapabilities = [ "8.6" ]); the CUDA 12.9 -> 13.4 default bump otherwise compiles opencv and friends for ten architectures locally. - llama-cpp b11756 already contains the patch nixpkgs backports, and its new test-llama-context-model pulls in the network-only test-download-model fixture, so drop the patch and disable the test. - whisper-cpp now links llama-cpp's ggml; our llama-cpp drops GGML_BACKEND_DL so that link needs libcuda.so.1. Use the cached CPU whisper-cpp on stock llama-cpp (only ffmpeg-full uses it). - Drop HandBrake's A15 pgssubdec ffmpeg patch, which no longer applies to ffmpeg 8.1.3 (NixOS/nixpkgs#576333, fix in NixOS/nixpkgs#576407).
attilaolah
added a commit
to attilaolah/dotfiles
that referenced
this pull request
Oct 21, 2026
* chore(deps): update flake * chore(deps): update flake * feat: install some formatters to the env * fix(llama-cpp): disable tests that are timing out consistently * chore(deps): update flake, disable failing llama-cpp tests * fix: backport patchelf fix Backport //github.com/NixOS/nixpkgs/pull/575979 to fix CUDA builds. * chore: update NixOS/nixpkgs#574836 patch PR is now merged so the URL will remain stable. * chore: add missing PR comment * fix: hplip build failure Backport NixOS/nixpkgs#575319. * chore(deps): update flake * chore(deps): update flake, remove applied patches
Ramblurr
added a commit
to Ramblurr/nixcfg
that referenced
this pull request
Nov 22, 2026
personal-unstable now builds on flox/nixpkgs unstable, the revisions Flox builds CUDA packages for, so the default CUDA 13 stack and onnxruntime substitute from cache.flox.dev. The CUDA 12.9 pins existed for the patchelf crash that NixOS/nixpkgs#575979 fixed, and they forced local ollama-cuda and onnxruntime builds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Things done
#569010 updated
patchelfto0.19.2and broke several cuda builds:A revert was merged in
staging-next(#574271).In the meantime, this fixes the impacted
cudaPackages.See also:
cc @nixos/cuda-maintainers
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.