Skip to content

top-level: add warning for x86_64-darwin deprecation#492100

Merged
emilazy merged 1 commit intoNixOS:masterfrom
emilazy:push-tkvmlxlrxlnw
Mar 3, 2026
Merged

top-level: add warning for x86_64-darwin deprecation#492100
emilazy merged 1 commit intoNixOS:masterfrom
emilazy:push-tkvmlxlrxlnw

Conversation

@emilazy
Copy link
Member

@emilazy emilazy commented Feb 19, 2026

We’ve never deprecated a platform in widespread use before, and it seems prudent to warn users about the upcoming end of support so they can plan appropriately.

I tried to make this relatively unobtrusive by taking advantage of the import cache and offering a way to turn it off, but I anticipate there might still be issues with e.g. nix shell nixpkgs#… and spammy warnings from multiple instantiations of Nixpkgs. I’m not sure there’s much we can do about that unless we take a different strategy entirely; nix shell --impure nixpkgs#… with a ~/.config/nixpkgs/config.nix is about the best UX we can hope to offer with the restrictions of flakes.

Things done

  • 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.

@emilazy emilazy requested review from a team February 19, 2026 13:50
@jopejoe1
Copy link
Member

jopejoe1 commented Feb 19, 2026

This would need some adjustments for GitHub CI in at least the following locations (maybe missing some)

https://github.com/NixOS/nixpkgs/blob/09ac1a4dd614f93d8588def74847f810cc9b329c/ci/eval/outpaths.nix#L28
https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/packages-config.nix
https://github.com/NixOS/nixpkgs/blob/09ac1a4dd614f93d8588def74847f810cc9b329c/pkgs/top-level/release.nix#L39

@emilazy
Copy link
Member Author

emilazy commented Feb 19, 2026

I already adjusted ci/eval/outpaths.nix (and the release checks). Hydra already gets tons of warnings every eval and is fine, so I backed out changes to release.nix that I had locally, and it doesn’t look like the packages-config.nix consumers should be broken by a warning. But unfortunately there are things in Nixpkgs that like to re‐import Nixpkgs, so I expect to have to do a little digging before CI passes, yeah.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Feb 19, 2026
@jopejoe1
Copy link
Member

I already adjusted ci/eval/outpaths.nix (and the release checks).

My bad

Hydra already gets tons of warnings every eval and is fine, so I backed out changes to release.nix that I had locally, and it doesn’t look like the packages-config.nix consumers should be broken by a warning.

Ahh, yeah the CI jobs that made use of those where for x86_64-linux only

But unfortunately there are things in Nixpkgs that like to re‐import Nixpkgs, so I expect to have to do a little digging before CI passes, yeah.

We should really reduce the amount we re-import nixpkgs

@emilazy emilazy force-pushed the push-tkvmlxlrxlnw branch 9 times, most recently from bad334d to b710766 Compare February 19, 2026 15:59
@nixpkgs-ci nixpkgs-ci bot requested review from a team, Ericson2314, GetPsyched and philiptaron February 19, 2026 16:05
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 8.has: changelog This PR adds or changes release notes 6.topic: fetch Fetchers (e.g. fetchgit, fetchsvn, ...) 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 8.has: documentation This PR adds or changes documentation backport release-25.11 Backport PR automatically labels Feb 19, 2026
@emilazy
Copy link
Member Author

emilazy commented Feb 19, 2026

Spun off #492147, #492148, and #492152, which are blockers for this.

@emilazy
Copy link
Member Author

emilazy commented Feb 19, 2026

@NixOS/nixpkgs-ci I understand that all changes to the ci directory should generally be backported, but I’m unclear on how we’ll want to handle this, #492160, and #492189, as the changes are definitely non‐backportable (the added Nixpkgs config won’t be supported on 25.11 – although I suppose we could backport that harmlessly – and we certainly won’t be able to backport the drop of the platform to 26.05). Thoughts?

Copy link
Contributor

@MattSturgeon MattSturgeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NixOS/nixpkgs-ci I understand that all changes to the ci directory should generally be backported, but I’m unclear on how we’ll want to handle this

Yes, we definitely want to keep the ci tree in-sync across supported branches. Where possible, we also want CI to run the same on all branches. But where that doesn't make sense, I suppose we could use version predicates?

Comments on the relevant CI code below.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. and removed 6.topic: fetch Fetchers (e.g. fetchgit, fetchsvn, ...) labels Feb 22, 2026
We’ve never deprecated a platform in widespread use before, and it
seems prudent to warn users about the upcoming end of support so they
can plan appropriately.

I tried to make this relatively unobtrusive by taking advantage of
the import cache and offering a way to turn it off, but I anticipate
there might still be issues with e.g. `nix shell nixpkgs#…` and
spammy warnings from multiple instantiations of Nixpkgs. I’m
not sure there’s much we can do about that unless we take a
different strategy entirely; `nix shell --impure nixpkgs#…` with a
`~/.config/nixpkgs/config.nix` is about the best UX we can hope to
offer with the restrictions of flakes.
@nixpkgs-ci nixpkgs-ci bot removed the 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions label Feb 27, 2026
@emilazy emilazy removed the backport release-25.11 Backport PR automatically label Mar 2, 2026
Copy link
Contributor

@reckenrode reckenrode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Mar 3, 2026
@emilazy
Copy link
Member Author

emilazy commented Mar 3, 2026

Okay, let’s see how this plays. Hopefully it doesn’t blow things up too much.

@emilazy emilazy added this pull request to the merge queue Mar 3, 2026
Merged via the queue into NixOS:master with commit 5b632d5 Mar 3, 2026
30 of 32 checks passed
@emilazy emilazy deleted the push-tkvmlxlrxlnw branch March 3, 2026 01:56
theoparis added a commit to tinted-software/nixpkgs that referenced this pull request Mar 4, 2026
theoparis added a commit to tinted-software/nixpkgs that referenced this pull request Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants