Unexpected rebuild error switching to nixos-unstable-small

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.

Full rebuild output: https://pastebin.com/VEn7Wxzm

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.

Looks like a recent error that slipped by, now fixed in #356292.

Yes, I’m sorry abut this one, my fault :frowning: 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.

3 Likes

this error is occur my system. i use nixos unstable and this morning i change my display manager sddm to greetd.tuigreet.

i add my config.nix nixpkgs.allow.unsupport.software = true it canbreak my system??

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.

Edit: You can track it here: https://nixpk.gs/pr-tracker.html?pr=356292

1 Like

You’re a lifesaver, man. I just bumped for the first time in a month and was worried something was wrong.

The tracker shows the update in -small already, and I’m okay with building packages, so I just swapped from unstable to unstable-small.

Thanks for the PR link and the tracker!

1 Like

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!

2 Likes