Skip to content

Cosmic stable 1.0.14#524670

Closed
salva09 wants to merge 25 commits into
NixOS:masterfrom
salva09:cosmic-stable-1.0.14
Closed

Cosmic stable 1.0.14#524670
salva09 wants to merge 25 commits into
NixOS:masterfrom
salva09:cosmic-stable-1.0.14

Conversation

@salva09
Copy link
Copy Markdown
Contributor

@salva09 salva09 commented May 27, 2026

Things done

salva09 added 25 commits May 26, 2026 20:54
@nixpkgs-ci nixpkgs-ci Bot requested a review from a team May 27, 2026 03:14
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 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. labels May 27, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 6.topic: COSMIC COSMIC is a software platform for designing beautiful user experiences label May 27, 2026
@thefossguy
Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 524670 --extra-nixpkgs-config '{ allowBroken = false; }' --additional-package nixosTests.cosmic-autologin --additional-package nixosTests.cosmic --additional-package nixosTests.cosmic-autologin-noxwayland --additional-package nixosTests.cosmic-noxwayland
Commit: ef02f99194ef5ba2c303fa219de0643b69d792c1


aarch64-linux

❌ 7 packages failed to build:
  • cosmic-ext-applet-sysinfo
  • cosmic-idle
  • cosmic-panel
  • nixosTests.cosmic
  • nixosTests.cosmic-autologin
  • nixosTests.cosmic-autologin-noxwayland
  • nixosTests.cosmic-noxwayland
✅ 39 packages built:
  • cosmic-applets
  • cosmic-applibrary
  • cosmic-bg
  • cosmic-comp
  • cosmic-design-demo
  • cosmic-edit
  • cosmic-ext-applet-caffeine
  • cosmic-ext-applet-external-monitor-brightness
  • cosmic-ext-applet-minimon
  • cosmic-ext-applet-privacy-indicator
  • cosmic-ext-applet-weather
  • cosmic-ext-calculator
  • cosmic-ext-tweaks
  • cosmic-files
  • cosmic-greeter
  • cosmic-icons
  • cosmic-initial-setup
  • cosmic-launcher
  • cosmic-notifications
  • cosmic-osd
  • cosmic-player
  • cosmic-randr
  • cosmic-reader
  • cosmic-screenshot
  • cosmic-session
  • cosmic-settings
  • cosmic-settings-daemon
  • cosmic-store
  • cosmic-term
  • cosmic-wallpapers
  • cosmic-workspaces-epoch
  • examine
  • forecast
  • libcosmicAppHook
  • miro
  • oboete
  • quick-webapps
  • tasks
  • xdg-desktop-portal-cosmic

@thefossguy
Copy link
Copy Markdown
Member

The cosmic-panel package is failing to build because cosmic-idle, its dependency has an incorrect cargoHash set.

@salva09
Copy link
Copy Markdown
Contributor Author

salva09 commented May 27, 2026

Weird, when I ran the review, cosmic-idle was built successfully, let me run it again and I'll post it here

@salva09
Copy link
Copy Markdown
Contributor Author

salva09 commented May 27, 2026

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 524670 --additional-package nixosTests.cosmic-autologin --additional-package nixosTests.cosmic-autologin-noxwayland --additional-package nixosTests.cosmic-noxwayland --additional-package nixosTests.cosmic
Commit: ef02f99194ef5ba2c303fa219de0643b69d792c1


x86_64-linux

✅ 4 tests built:
  • nixosTests.cosmic
  • nixosTests.cosmic-autologin
  • nixosTests.cosmic-autologin-noxwayland
  • nixosTests.cosmic-noxwayland
✅ 68 packages built:
  • cosmic-applets
  • cosmic-applets.debug
  • cosmic-applibrary
  • cosmic-applibrary.debug
  • cosmic-bg
  • cosmic-bg.debug
  • cosmic-comp
  • cosmic-comp.debug
  • cosmic-design-demo
  • cosmic-design-demo.debug
  • cosmic-edit
  • cosmic-edit.debug
  • cosmic-ext-applet-caffeine
  • cosmic-ext-applet-external-monitor-brightness
  • cosmic-ext-applet-minimon
  • cosmic-ext-applet-privacy-indicator
  • cosmic-ext-applet-sysinfo
  • cosmic-ext-applet-weather
  • cosmic-ext-calculator
  • cosmic-ext-tweaks
  • cosmic-ext-tweaks.debug
  • cosmic-files
  • cosmic-files.debug
  • cosmic-greeter
  • cosmic-greeter.debug
  • cosmic-icons
  • cosmic-idle
  • cosmic-idle.debug
  • cosmic-initial-setup
  • cosmic-initial-setup.debug
  • cosmic-launcher
  • cosmic-launcher.debug
  • cosmic-notifications
  • cosmic-notifications.debug
  • cosmic-osd
  • cosmic-osd.debug
  • cosmic-panel
  • cosmic-panel.debug
  • cosmic-player
  • cosmic-player.debug
  • cosmic-randr
  • cosmic-randr.debug
  • cosmic-reader
  • cosmic-reader.debug
  • cosmic-screenshot
  • cosmic-screenshot.debug
  • cosmic-session
  • cosmic-session.debug
  • cosmic-settings
  • cosmic-settings-daemon
  • cosmic-settings-daemon.debug
  • cosmic-settings.debug
  • cosmic-store
  • cosmic-store.debug
  • cosmic-term
  • cosmic-term.debug
  • cosmic-wallpapers
  • cosmic-workspaces-epoch
  • cosmic-workspaces-epoch.debug
  • examine
  • forecast
  • libcosmicAppHook
  • miro
  • oboete
  • quick-webapps
  • tasks
  • xdg-desktop-portal-cosmic
  • xdg-desktop-portal-cosmic.debug

@alyssais
Copy link
Copy Markdown
Member

alyssais commented May 27, 2026 via email

@thefossguy
Copy link
Copy Markdown
Member

No, this isn't a bad version bump. Something else is off. I get a different cargoHash each time I try to set it for cosmic-idle. And yes, that includes setting an empty hash and doing a nix-build -A cosmic-idle.cargoDeps. This too yields a different hash every time I run it.

Plus, the src hasn't changed so this shouldn't even happen.

@alyssais
Copy link
Copy Markdown
Member

alyssais commented May 27, 2026 via email

@thefossguy
Copy link
Copy Markdown
Member

@salva09
Copy link
Copy Markdown
Contributor Author

salva09 commented May 27, 2026

Can you check if the build fails for you on x86_64 as well? @thefossguy
Nevermind, I got the error now trying to use the new packages on my system

@alyssais
Copy link
Copy Markdown
Member

Diff the different cargoDeps results you get, I mean.

@thefossguy
Copy link
Copy Markdown
Member

How do you propose I diff the cargoDeps results?

I'm guessing you want me to do this?

  1. Generate one cargoHash with an empty hash.
  2. Use the hash from step 1 and build the vendor drv.
  3. Do step 1 again, get a new hash.
  4. Use the hash from step 3 and build the vendor drv.
  5. Diff vendor drvs from step 2 and 4.

@alyssais
Copy link
Copy Markdown
Member

alyssais commented May 27, 2026 via email

@thefossguy
Copy link
Copy Markdown
Member

No diffs between the vendor drvs either.

@salva09
Copy link
Copy Markdown
Contributor Author

salva09 commented May 27, 2026

I'm trying to build the package using it's Cargo.lock instead of cargoHash like this

#cargoHash = "sha256-P6ovsBOlhp5lubwa42UpUlTFxzqzYHGth2zf4XGhtWM=";

cargoLock = {
  lockFile = ./Cargo.lock;
  outputHashes = {
    "atomicwrites-0.4.2" = lib.fakeHash;
    "clipboard_macos-0.1.0" = lib.fakeHash;
    "cosmic-config-0.1.0" = lib.fakeHash;
    "cosmic-settings-config-0.1.0" = "sha256-w3F7RU1i/ppE1F0LEAGKK5S7PecOMp3gMuFQF62HWp4=";
    "smithay-clipboard-0.8.0" = lib.fakeHash;
    "upower_dbus-0.3.2" = lib.fakeHash;
  };
};

And right now it's failing trying to build known-folders-1.4.0

error: Cannot build '/nix/store/4363zlbd9ki6101kvdd1f9n7s3b3m12c-crate-known-folders-1.4.0.tar.gz.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/q57b927v4r3fkxvkmi3vyrzdcm166v1f-crate-known-folders-1.4.0.tar.gz
       Last 17 log lines:
       > structuredAttrs is enabled
       >
       > trying https://crates.io/api/v1/crates/known-folders/1.4.0/download
       >   % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
       >                                  Dload  Upload  Total   Spent   Left   Speed
       >   0      0   0      0   0      0      0      0                              0
       > curl: (22) The requested URL returned error: 403
       > Warning: Problem (retrying all errors). Retrying in 1 second. 3 retries left.
       >   0      0   0      0   0      0      0      0                              0
       > curl: (22) The requested URL returned error: 403
       > Warning: Problem (retrying all errors). Retrying in 2 seconds. 2 retries left.
       >   0      0   0      0   0      0      0      0                              0
       > curl: (22) The requested URL returned error: 403
       > Warning: Problem (retrying all errors). Retrying in 4 seconds. 1 retry left.
       >   0      0   0      0   0      0      0      0                              0
       > curl: (22) The requested URL returned error: 403
       > error: cannot download crate-known-folders-1.4.0.tar.gz from any mirror
       For full logs, run:
         nix log /nix/store/4363zlbd9ki6101kvdd1f9n7s3b3m12c-crate-known-folders-1.4.0.tar.gz.drv
error: Cannot build '/nix/store/h1kxzcia98fn2vwysycb7293yb111r3v-known-folders-1.4.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/a9dga7g7nkd8k1y3lblj1ld2rxqwwgsy-known-folders-1.4.0

@alyssais
Copy link
Copy Markdown
Member

No diffs between the vendor drvs either.

There must be some difference in the output paths, or they wouldn't produce different output hashes.

@thefossguy
Copy link
Copy Markdown
Member

Paths are different, but the content isn't.

@alyssais
Copy link
Copy Markdown
Member

alyssais commented May 27, 2026 via email

@Pandapip1
Copy link
Copy Markdown
Member

I've been hitting 403's in general, not just for cosmic. I think https://crates.io/ updated their blocklist for some reason.

@thefossguy
Copy link
Copy Markdown
Member

@Pandapip1 the 403 is because a user agent is now required (see #512735).

@thefossguy
Copy link
Copy Markdown
Member

Huh, so there is an issue. We have a .git repository in the cosmic-idle.cargoDeps.vendorStaging derivation now. And since the git repository metadata files are not guaranteed to be deterministic, that is the cause behind the inconsistent cargoHash being reported.

$ nix-build -A cosmic-idle.cargoDeps.vendorStaging
/nix/store/xgfhi6qzfx86iyvvky3qhqd23jwbc819-cosmic-idle-1.0.14-vendor-staging

$ find /nix/store/xgfhi6qzfx86iyvvky3qhqd23jwbc819-cosmic-idle-1.0.14-vendor-staging -name '.git' -type d
/nix/store/xgfhi6qzfx86iyvvky3qhqd23jwbc819-cosmic-idle-1.0.14-vendor-staging/git/2f0b3334914e4ab1b0f3df821eeadd7ad700566f/.git

$ nix build --print-out-paths github:nixos/nixpkgs?rev=20cda6e41556aeced3e60f272a095f984579b2ff#cosmic-idle.cargoDeps.vendorStaging
/nix/store/71mb0mmb9amxn5y1q3kmixvmsx3fam2y-cosmic-idle-1.0.13-vendor-staging

$ find /nix/store/71mb0mmb9amxn5y1q3kmixvmsx3fam2y-cosmic-idle-1.0.13-vendor-staging -name '.git' -type d

@thefossguy
Copy link
Copy Markdown
Member

related: #525255

@a-kenji
Copy link
Copy Markdown
Member

a-kenji commented May 29, 2026

Good find! Tested it with: #525255

@salva09
Copy link
Copy Markdown
Contributor Author

salva09 commented Jun 3, 2026

Closed this PR as a new cosmic version is already out, I'll create a new pr with the new version using the git fetch fix and merge until that one is merged first

@thefossguy
Copy link
Copy Markdown
Member

superseded by #527825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: COSMIC COSMIC is a software platform for designing beautiful user experiences 8.has: package (update) This PR updates a package to a newer version 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: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants