Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matugen fails building on NixOS #141

Open
Flexksx opened this issue Dec 14, 2024 · 4 comments
Open

Matugen fails building on NixOS #141

Flexksx opened this issue Dec 14, 2024 · 4 comments

Comments

@Flexksx
Copy link

Flexksx commented Dec 14, 2024

Added this to my flake inputs

matugen = {
      url = "github:/InioX/Matugen";
    };

and this to home-manager

 home = {
    username = "flexksx";
    homeDirectory = "/home/flexksx";
    stateVersion = "24.11";
    packages = with pkgs; [
      spotify-player
      bastet
      themix-gui
      resonance
      inputs.matugen.packages.${system}.default  # <----- This one here
      inputs.mcmojave-hyprcursor.packages.${pkgs.stdenv.hostPlatform.system}.default
      hyprland-autoname-workspaces
    ];
    sessionVariables = {
      HYPRCURSOR_THEME = "McMojave";
    };
  };

And when I update, it will throw this error

error: builder for '/nix/store/62qri1wdcb6ywbwcmfwqh67gf6jl88d7-matugen-2.4.1.drv' failed with exit code 101;
       last 25 log lines:
       >    Compiling material-colors v0.4.2
       >    Compiling matugen v2.4.1 (/build/source)
       > error[E0425]: cannot find value `wallpaper_cfg` in this scope
       >   --> src/helpers.rs:72:32
       >    |
       > 72 |     wallpaper::unix::set(path, wallpaper_cfg)?;
       >    |                                ^^^^^^^^^^^^^ not found in this scope
       >
       > warning: unused import: `matugen::template_util::template::get_render_data`
       >  --> src/template.rs:7:5
       >   |
       > 7 | use matugen::template_util::template::get_render_data;
       >   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   |
       >   = note: `#[warn(unused_imports)]` on by default
       >
       > warning: unused import: `matugen::color::color::Source`
       >   --> src/template.rs:24:5
       >    |
       > 24 | use matugen::color::color::Source;
       >    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >
       > For more information about this error, try `rustc --explain E0425`.
       > warning: `matugen` (bin "matugen") generated 2 warnings
       > error: could not compile `matugen` (bin "matugen") due to 1 previous error; 2 warnings emitted
       For full logs, run 'nix log /nix/store/62qri1wdcb6ywbwcmfwqh67gf6jl88d7-matugen-2.4.1.drv'.
error: 1 dependencies of derivation '/nix/store/373kqjjqsaxbbggvw5sczh516x1qm1rr-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/akaynys902dg0r1s5i4bcl4pd4gc08jv-home-manager-generation.drv' failed to build
@InioX
Copy link
Owner

InioX commented Dec 14, 2024

I accidentally built on windows without checking if it works on linux, ill fix it in another commit.

@DaniD3v
Copy link
Collaborator

DaniD3v commented Dec 18, 2024

Please add CI jobs to prevent this from happening in the future

@InioX
Copy link
Owner

InioX commented Dec 18, 2024

Will do, does it build on latest commit?

@DaniD3v
Copy link
Collaborator

DaniD3v commented Dec 18, 2024

8384ba0 is the last one that builds for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants