danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
902 stars 105 forks source link

Stylix doesn't build after commit 76d6ca2. #432

Closed rafameou closed 2 weeks ago

rafameou commented 2 weeks ago

After commit https://github.com/danth/stylix/commit/76d6ca2224adef72f482e46fd61d66d2ef57fb66 escape needs to be replaced with lib.escape in the vim home-manager module.

building the system configuration...

error:
       … while calling the 'head' builtin

         at /nix/store/qqwr649pc0qprc9lw2fmdsi1km6p7q2h-source/lib/attrsets.nix:1575:11:

         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'

         at /nix/store/qqwr649pc0qprc9lw2fmdsi1km6p7q2h-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

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

       error: undefined variable 'escape'

       at /nix/store/9m98h9m60bx05avjf4viz9qjhf6sf6rf-modules/vim/hm.nix:48:21:

           47|
           48|       set guifont=${escape [" "] fonts.monospace.name}:h${toString fonts.sizes.terminal}
             |                     ^
           49|     '';