shaunsingh / nix-darwin-dotfiles

Dotfiles managed via Nix-Darwin and Mk-Darwin-System, for schoolwork and kotlin, lua, and rust programming
391 stars 27 forks source link

how can i fix error: hash mismatch in fixed-output derivation? #3

Closed ghost closed 2 years ago

ghost commented 2 years ago

I relly like your flake files. but when i install yabai, i got the error:

nix build ./#darwinConfigurations.my-laptop.system --impure -L -v
building '/nix/store/y1fihf6cg4fizy0q5116gl2zccv2jprb-spacebarrc.drv'...
building '/nix/store/xvmd7cvwip9xzm05v73a9qwwlzbxf3zd-source.drv'...
source> trying https://github.com/donaldguy/yabai/archive/723f2ee0346b78360c497b7a7eb7be409c02302c.tar.gz
source>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
source>                                  Dload  Upload   Total   Spent    Left  Speed
source> 100   157  100   157    0     0    204      0 --:--:-- --:--:-- --:--:--   204
source> 100 1489k    0 1489k    0     0   571k      0 --:--:--  0:00:02 --:--:-- 1581k
source> unpacking source archive /private/tmp/nix-build-source.drv-0/723f2ee0346b78360c497b7a7eb7be409c02302c.tar.gz
error: hash mismatch in fixed-output derivation '/nix/store/xvmd7cvwip9xzm05v73a9qwwlzbxf3zd-source.drv':
         specified: sha256-It07AN03vjIBh7kZgpoi7I4AVrohNdO70M5vSJW0Jf0=
            got:    sha256-rT6Lf0CnJs619DmNSP8CtjsqbwiykuRI5V6EAkBFNu8=
error: 1 dependencies of derivation '/nix/store/mvydw1qp7zsg74z4bmavh1w7072a73f3-yabai-3.3.4.drv' failed to build
building '/nix/store/j5d1ks65dddl4vk63g0lj7v4x05z2kkg-org.nixos.spacebar.plist.drv'...
error: 1 dependencies of derivation '/nix/store/6fn2xjd6326r5gggj1mxbd3aja23wbf5-org.nixos.yabai.plist.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fy8hsqh39jkssjmd11i447pa9rsj5k8s-system-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i0v2zf1kz4j72ddw7cfprj4yj00qfyqk-yabai-sa-start.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8lmlcxfbgsh8jh0hl841b1n8n9s7wpai-darwin-system-21.11.20211004.ee084c0+darwin4.e1a3f72.drv' failed to build
ghost commented 2 years ago

update sha256 fixed.

shaunsingh commented 2 years ago

Sorry about that! I switched the yabai override to grab a commit and build from source instead.

ghost commented 2 years ago

Sorry about that! I switched the yabai override to grab a commit and build from source instead.

But I still can’t install yabai #4 ;(