Millennium
Millennium copied to clipboard
[Bug] NixOS. error: attribute 'steam-millennium' missing / Plus error: hash mismatch in fixed-output derivation
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
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.
I propose 2 solution for my Issue.
- 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. - For hash mismatch. Add auto update for 2 hashes I wrote in previous comment.
therefore after these 2 changes nix support will be revived.
terminal command flake update input may be required to run for successeful update if people already had tried and got hash mismatch error.
Is this resolved?
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
Closing in favor of NixOS mega-thread.