Misterio77 / nix-config

Personal nixos and home-manager configurations.
https://m7.rs/git/nix-config/
MIT License
719 stars 42 forks source link

Build issue - gtk theme #4

Closed toothytoad closed 2 years ago

toothytoad commented 2 years ago

Hi,

I was attempting to boot strap a new machine with your config and on first boot in the shell "home-manager switch --flake ." is giving me a build error when it tries the generate a theme.

error hash mismatch in fixed-output derivation '/nix/store/5rjyafr6d7f9k1ayr9916fyfm086nfh6-source.drv':
    specified: sha256-0eCAfm/MWXv68bCl2vbVbvgv8DiUH09TAUhoKq7Ow0k=
       got:    sha256-h5pxL6Z+ZEOgALxm7Hn0aQh0++/8lNURl0ooGJ+cYqg=
error: 1 dependencies of derivation '/nix/store...generated-gtk-theme-paraiso.drv' failed to build
error: 1 dependencies of derivation '/nix/store...generated-gtk-theme-paraiso-fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store...home-manager-path.drv failed to build
error: 1 dependencies of derivation '/nix/store...home-manager-generation.drv failed to build

Also, I don't know if you care, but if you have both colorscheme and wallpaper commented out there's an "infinite recursion encountered" error.

Thanks

Misterio77 commented 2 years ago

Hey!

The infinite recursion is kind of an UX issue (I think I'm gonna go and add a check to default it to some scheme when that happens), as it's expected I'll be setting a scheme and/or a wallpaper.

I just reproduced the GTK theme issue here, somehow the hash is changing, even though it's locked into a single commit. But my hash seems different from both the expected one and the one you got:

error: hash mismatch in fixed-output derivation '/nix/store/5rjyafr6d7f9k1ayr99l6fyfm086nfh6-source.drv':
         specified: sha256-0eCAfm/MWXv6BbCl2vbVbvgv8DiUH09TAUhoKq7Ow0k=
            got:    sha256-CpcuwHry0qBJdXi+PqaYEwT0L7yT5+Zs7feHjOj2YMk=
error: 1 dependencies of derivation '/nix/store/6m95l9bccdipg614q2g3x7fq5xwn450a-generated-gtk-theme-heetch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b1jf8bq5q2677wmrwa4m37zg7vbnsyja-generated-gtk-theme-heetch-fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/v97jk1w4anil907j5v1nhlm3ppsfira5-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yshaqr3a1b731q83vf8kgas50ap90y33-home-manager-generation.drv' failed to build
Misterio77 commented 2 years ago

It seems materia's submodules caused the hash change, pushing an update to nix-colors right away.

toothytoad commented 2 years ago

Thank you!