Misterio77 / nix-colors

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

Colorscheme from image failing to work with home-manager switch #43

Closed AnotherRandomGitHubAccount closed 5 months ago

AnotherRandomGitHubAccount commented 5 months ago

I can't seem to get the colorscheme generator to work.

Heres the code:

{ pkgs, nix-colors, ... }:

let
  nix-colors-lib = nix-colors.lib.contrib { inherit pkgs; };
in {
  colorScheme = nix-colors-lib.colorSchemeFromPicture {
    path = ./wallpaper.jpg;
    kind = "dark";
  };
}

I know its not some weird syntax error because i've been getting those but finally got it to work. (i also know that the file is correctly added and is in the correct location) help?


[bongo@laptop:/System32]$ home-manager switch --flake ./
error:
       … while evaluating a branch condition

         at /nix/store/dg2g5qwvs36dhfqj9khx4sfv0klwl9f0-source/lib/lists.nix:57:9:

           56|       fold' = n:
           57|         if n == len
             |         ^
           58|         then nul

       … while calling the 'length' builtin

         at /nix/store/dg2g5qwvs36dhfqj9khx4sfv0klwl9f0-source/lib/lists.nix:55:13:

           54|     let
           55|       len = length list;
             |             ^
           56|       fold' = n:

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

       error: builder for '/nix/store/bl5ksnsc54yhcsy1ip0m16igx2c3i190-generated-colorscheme.drv' failed with exit code 1;
       last 8 log lines:
       > unpacking sources
       > patching sources
       > updateAutotoolsGnuConfigScriptsPhase
       > configuring
       > no configure script, doing nothing
       > building
       > Error: failed to fill whole buffer
       > Error: EOF while parsing a value
       For full logs, run 'nix log /nix/store/bl5ksnsc54yhcsy1ip0m16igx2c3i190-generated-colorscheme.drv'.

[bongo@laptop:/System32]$ nix log /nix/store/bl5ksnsc54yhcsy1ip0m16igx2c3i190-generated-colorscheme.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/bl5ksnsc54yhcsy1ip0m16igx2c3i190-generated-colorscheme.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Error: failed to fill whole buffer
Error: EOF while parsing a value
AnotherRandomGitHubAccount commented 5 months ago

wait nvm sorry, i think an image had an encoding error and i fixed it