Misterio77 / nix-colors

Modules and schemes to make theming with Nix awesome.
GNU General Public License v3.0
465 stars 38 forks source link

`inputs.nix-colors.colorSchemes.3024` cannot be evaluated #28

Closed montchr closed 1 year ago

montchr commented 1 year ago

When inspecting the nix-colors flake outputs in nix repl, I get the following error when attempting to see the contents of the 3024 scheme:

nix-repl> inputs.nix-colors.colorSchemes.3024
error: attempt to call something which is not a function but a set

       at «string»:1:1:

            1| inputs.nix-colors.colorSchemes.3024
             | ^

I haven't encountered this with any other color scheme in the flake outputs, though I can't say I've tested more than a couple.

Full demonstration

asciicast

montchr commented 1 year ago

Ha, as soon as I opened this issue it occurred to me that this could be a result of the numeric name of the color scheme. And sure enough, no issues if I do the following:

nix-repl> inputs.nix-colors.colorSchemes."3024"
{ author = "Jan T. Sott (http://github.com/idleberg)"; colors = { ... }; name = "3024"; slug = "3024"; }