I’ve been on nixos-unstable forever, but decided it would be interesting to try using nixos-unstable-small to get fixes sooner, since my desktop has the build power.
However, making just that one change to my flake, and performing a rebuild, resulted in an unexpected error:
error: Package ‘cctools-1010.6’ in /nix/store/mjahyi1fpb1srd004a6j1b3ynbddyaq4-source/pkgs/by-name/cc/cctools/package.nix:167 is not available on the requested hostPlatform:
hostPlatform.config = "x86_64-unknown-linux-gnu"
package.meta.platforms = [
"x86_64-darwin"
"i686-darwin"
"aarch64-darwin"
"armv7a-darwin"
]
package.meta.badPlatforms = [ ]
, refusing to evaluate.
I’m not familiar with cctools, but why would it suddenly be an issue just from switching nixpkgs? My understanding was that nixos-unstable and nixos-unstable-small were identical other than binary cache.
Yes, I’m sorry abut this one, my fault cctools is part of the Darwin toolchain and I merged the PR to fix a Mac bug, but it broke eval on Linux.
This isn’t quite true – nixos-unstable-small bumps far more often than nixos-unstable (multiple times a day instead of every few days), hence problems appearing early there.
Unless you have a specific reason to enable unsupported, it would be better to just wait until the fix got rolled out to nixos-unstable, and the problem disappears.
Emily, I forgot to say this last week, but… No harm, no foul! Don’t beat yourself up. The fix is already in nixos-unstable (according to the tracker), and I’m sure it’ll be in 24.11 shortly.
Thank you for the work you do, and have a wonderful weekend!