cucumber-sp / yandex-music-linux

Linux client of Yandex Music
Other
435 stars 10 forks source link

Hash mismatch with nix run #128

Open mr3iscuit opened 1 month ago

mr3iscuit commented 1 month ago

Command

NIXPKGS_ALLOW_UNFREE=1 nix run github:NixOS/nixpkgs/nixos-unstable#yandex-music --impure

Output

error: hash mismatch in fixed-output derivation '/nix/store/18rv31c5yz9qhjr33z26kk4a7sbch4n0-source.drv': specified: sha256-y+T2ckrnhrOiiPKBUlnvDb4FwrIfbaIXwVi16AoX/bQ= got: sha256-CYb7J9XqQN3aiVaJzWwx9r62J5W3Su7GiaDC98/ubjU= error: 1 dependencies of derivation '/nix/store/rz0j6jcypdl7wx6swdyxs9b3vl64mkyn-yandex-music-5.18.2.drv' failed to build

ein-shved commented 1 month ago

Already in progress. Wait for reviewer to approve https://github.com/NixOS/nixpkgs/pull/350288

ein-shved commented 1 month ago

Please, check

mr3iscuit commented 3 weeks ago

Same problem

NIXPKGS_ALLOW_UNFREE=1 nix run github:NixOS/nixpkgs/nixos-unstable#yandex-music --impure
error: hash mismatch in fixed-output derivation '/nix/store/412czsdrkaqw9w4y5pi61vd7n1fph9kw-source.drv':
         specified: sha256-nhy4D2PgTMsQOs8hPY39Z+I+Tldgf1ASZbatfxWqNTw=
            got:    sha256-ch9pqn6BrO54mCdExluv2lGkmu5q6Vy2/OcNJKbslTo=
error: 1 dependencies of derivation '/nix/store/lvyayfcy7jpw4kmhnwlxc8cxw5yd54k1-yandex-music-5.23.2.drv' failed to build
mr3iscuit commented 3 weeks ago

In nix, the file to be used must not change if it is used in a nix derivation, and must be the same for each version of the nix derivation. The problem may be hidden on the source URL which the file (yandex music) is downloaded.

cucumber-sp commented 5 days ago

@ein-shved если я правильно понял он берет хеш для новой версии но ссылается на старый файл? Может используете теги с репозитория так же как я сделал для Arch linux

ein-shved commented 5 days ago

Нет, скачиваемый файл на стороне яндекса меняет иногда свой хэш. Тут ничего не поделать, кроме как жаловаться в сам яндекс.