Millennium icon indicating copy to clipboard operation
Millennium copied to clipboard

[Bug] NixOS. error: attribute 'steam-millennium' missing / Plus error: hash mismatch in fixed-output derivation

Open ghost opened this issue 1 month ago • 5 comments

Before Reporting

  • [x] I found no existing issues matching my bug
  • [x] My issue is not caused by a theme
  • [x] My issue is not caused by a plugin

Describe the Bug

On https://docs.steambrew.app/users/getting-started/installation#linux it is told to use nixpkgs.overlay = [ inputs.millennium.overlays.default ];

However I was getting error: error: attribute 'steam-millennium' missing

so I found a fix to add letter s at end of nixpkgs.overlay from there on I could start system rebuild with correct code: nixpkgs.overlays = [ inputs.millennium.overlays.default ];

Here I could start rebuild but run into an error error: hash mismatch in fixed-output derivation '/nix/store/f946lfpkdajzjpmj3sx3j5w3wgnv7kgl-millennium-assets-pnpm-deps.drv': specified: sha256-nDSltpFQRM9loVuDour4OrRdN22/A7MkZTGAtL0x7rU= got: sha256-/FR6hFs/JGBAQEp58dw/DUvD1lTo0u5IBFCiveskgBc= such error was mentionet in #505 however with different hashes https://github.com/SteamClientHomebrew/Millennium/issues/504#issuecomment-3423947458 with exactly the same hashes. #436 with different hashes and mentioned issue is inside of assets.nix with faulty hash.

Expected Behavior

Everything should work.

Steps To Reproduce

Follow the guide at https://docs.steambrew.app/users/getting-started/installation#linux

Operating System

Linux

Anything else?

No response

ghost avatar Oct 24 '25 18:10 ghost

Problem with hash missmatch comes from 2 files. https://github.com/SteamClientHomebrew/Millennium/blob/00418518da713f292dac23be62d0803cfe9d56c1/nix/assets.nix#L13 https://github.com/SteamClientHomebrew/Millennium/blob/00418518da713f292dac23be62d0803cfe9d56c1/nix/typescript/shims.nix#L15

these two files causing issues becouse they are not autoupdated, therefore for each new build they require new hash. So Fix is obvious: add an autoupdate of these 2 hashes.

ghost avatar Oct 24 '25 21:10 ghost

I propose 2 solution for my Issue.

  1. Update https://docs.steambrew.app/users/getting-started/installation#linux to include nixpkgs.overlays = [ inputs.millennium.overlays.default ]; And add a note to users to include it this line in configuration.nix for better clarity of where to put it.
  2. For hash mismatch. Add auto update for 2 hashes I wrote in previous comment.

therefore after these 2 changes nix support will be revived.

ghost avatar Oct 24 '25 21:10 ghost

terminal command flake update input may be required to run for successeful update if people already had tried and got hash mismatch error.

ghost avatar Oct 24 '25 21:10 ghost

Is this resolved?

shdwmtr avatar Oct 31 '25 03:10 shdwmtr

Is this resolved?

I fixed error: attribute 'steam-millennium' missing In my https://github.com/SteamClientHomebrew/SteamBrew/pull/35 However hash mismatch is still a thing. Hence #538 will fix it for main branch temporarely and #534 will provide autoupdate of hashes to resolve it completely. And flake update input is a usefull command. I included it in install guide https://github.com/SteamClientHomebrew/SteamBrew/pull/37

DioKyrie-Git avatar Oct 31 '25 12:10 DioKyrie-Git

Closing in favor of NixOS mega-thread.

shdwmtr avatar Dec 03 '25 23:12 shdwmtr