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

gtk: 'anonymous lambda' called with unexpected argument 'variant' #428

Closed
sofiedotcafe opened this issue Dec 28, 2024 · 0 comments · Fixed by #429
Closed

gtk: 'anonymous lambda' called with unexpected argument 'variant' #428

sofiedotcafe opened this issue Dec 28, 2024 · 0 comments · Fixed by #429

Comments

@sofiedotcafe
Copy link

sofiedotcafe commented Dec 28, 2024

This piece of code fails to build:

gtk = {
  enable = true;
  catppuccin = {
    enable = true;
    icon.enable = true;
    gnomeShellTheme = true;
  };
};

... with the error as the following:

       … while evaluating the option `gtk.theme.package':

       … while evaluating definitions from `/nix/store/rgwcvkpzdhy6rqpn6509a1qwqjn6rg5f-source/modules/home-manager/gtk.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: function 'anonymous lambda' called with unexpected argument 'variant'
       at /nix/store/rgwcvkpzdhy6rqpn6509a1qwqjn6rg5f-source/pkgs/gtk/package.nix:1:1:
            1| {
             | ^
            2|   lib,

Has catppuccin-nix made any changes to ugh, gtk stuff recently? I took a quick look at the code and saw that this is probably an regression of 115c3de due to the code using the wrong variable name for setting the package flavor:

variant = cfg.flavor;
... and which is defined in the package as:
accents ? [ "mauve" ],

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

Successfully merging a pull request may close this issue.

1 participant