danyspin97 / wpaperd

Modern wallpaper daemon for Wayland
GNU General Public License v3.0
312 stars 24 forks source link

Add Rust Overlay to flake to allow for latest stable Rust toolchain #82

Closed chanman3388 closed 4 weeks ago

chanman3388 commented 2 months ago

Found this as bitstream-io v2.4.2 needs rustc 1.79 or newer.

matt1432 commented 2 months ago

This didn't work for me. I made my own PR here: https://github.com/danyspin97/wpaperd/pull/84

chanman3388 commented 2 months ago

This didn't work for me. I made my own PR here: #84

I'm unsure why it works for me:

$ rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09) (built from a source tarball)

$ nix develop
warning: Git tree '/home/chris/projects/wpaperd' is dirty

$ rustc --version
rustc 1.79.0 (129f3b996 2024-06-10)

It doesn't however if I do:

$ nix shell .
warning: Git tree '/home/chris/projects/wpaperd' is dirty
error: builder for '/nix/store/f3dwqzih0c10yayic8hz76hvvskdcnpn-wpaperd-1.0.1+date=2024-07-16_dirty.drv' failed with exit code 101;
       last 10 log lines:
       > note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
       > warning: `/build/.cargo/config` is deprecated in favor of `config.toml`
       > note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
       > error: rustc 1.78.0 is not supported by the following packages:
       >   bitstream-io@2.4.2 requires rustc 1.79
       >   ravif@0.11.7 requires rustc 1.79
       > Either upgrade rustc or select compatible dependency versions with
       > `cargo update <name>@<current-ver> --precise <compatible-ver>`
       > where `<compatible-ver>` is the latest version supporting rustc 1.78.0
       >
       For full logs, run 'nix log /nix/store/f3dwqzih0c10yayic8hz76hvvskdcnpn-wpaperd-1.0.1+date=2024-07-16_dirty.drv'.
chanman3388 commented 2 months ago

This didn't work for me. I made my own PR here: #84

I think I've fixed.

matt1432 commented 2 months ago

Yes that fixes it. I'll close my PR in favor of yours!

danyspin97 commented 4 weeks ago

Thank you for the PR and sorry for the delay!