SenchoPens/base16.nix

Schemes with dashes in the name don't work.

Lyndeno opened this issue · 4 comments

When doing:

cssScheme = builtins.readFile (config.scheme inputs.base16-waybar);

when

config.scheme = "${inputs.base16-schemes}/gruvbox-dark-hard.yaml";

I get an error like this:

error: builder for '/nix/store/dfm82w1faj8kb4pg67k4p6ak9arnlyx5-gruvbox-dark-hard.drv' failed with exit code 1;
       last 3 log lines:
       > building
       > installing
       > cp: target 'hard.css': No such file or directory

this started after 124820f

Using nord.yaml works fine

Upon further testing, it appears it is not the dashes in the filename, but something in the scheme name, in this case the original scheme name is "Gruvbox dark, hard". Changing it to "Gruvbox" allows the theme to work. Perhaps the comma and/or space is not working in the latest commits?

Hi, thanks! It must be fixed now, the problem was that the slug was initialized from the schemes name, not from the path to the scheme.

Thanks!