fix(nix): skip av/faster-whisper build checks on aarch64-darwin - #16080
fix(nix): skip av/faster-whisper build checks on aarch64-darwin#16080jerome-benoit wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Adjusts the Nix packaging override for python312.pkgs.av on aarch64-darwin to avoid build-time import/test checks that are being SIGKILLed due to a known Nix daemon Mach-O codesigning corruption issue, restoring nix build success for macOS ARM64.
Changes:
- On
aarch64-darwin, disablesdoCheckand clearspythonImportsCheckfor theavprebuilt override. - Adds inline rationale/comment pointing to the upstream Nix daemon issue/PR.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
df90542 to
1607b40
Compare
aa65da9 to
20c692f
Compare
742b3c3 to
25de4e3
Compare
The nix daemon's RewritingSink corrupts Mach-O ad-hoc code signatures on ffmpeg-headless multi-output derivation, causing macOS to SIGKILL any process that dlopens the broken dylibs. Disable the failing check phases on av (pythonImportsCheck + pytest) and faster-whisper (pythonImportsCheck, which transitively loads av). Override av and faster-whisper individually to preserve binary cache for unrelated packages. Drop once NixOS/nix#15638 lands. Fixes NousResearch#15776
25de4e3 to
839e935
Compare
|
Closing — the aarch64-darwin Thank you @alt-glitch for the comprehensive nix refactor! |
What does this PR do?
Disables build check phases that dlopen broken ffmpeg-headless dylibs on aarch64-darwin:
av: disablepythonImportsCheckandpytestCheckPhase(both load ffmpeg dylibs)faster-whisper: disablepythonImportsCheck(transitively imports av; pytest already off upstream)Overrides are targeted per-package to preserve binary cache for unrelated packages.
Related Issue
Fixes #15776
Type of Change
Changes Made
nix/python.nix: introduceavDarwinandfasterWhisperDarwin— overridden nixpkgs packages with build checks disabled. Used asfromformkPrebuiltOverridein theisAarch64Darwinblock.How to Test
nix build .#packages.aarch64-darwin.defaulton macOS ARM64Killed: 9)Checklist
Code
pytest tests/ -qand all tests passDocumentation & Housekeeping
Context
Note: replaces #15777 which was closed due to corrupted git history.