the-argus / spicetify-nix

A nix flake for configuring spicetify. Includes packaging for many popular themes and extensions.
GNU General Public License v3.0
138 stars 22 forks source link

`nix flake show`/`check` fails #48

Closed eclairevoyant closed 1 month ago

eclairevoyant commented 10 months ago

Describe the bug

Running nix flake show fails:

$ nix flake show github:the-argus/spicetify-nix
github:the-argus/spicetify-nix/3c702af1f717b7876fac08809201b1368d0d956c
├───checks
│   ├───aarch64-linux
│   │   ├───all-exts-and-apps omitted (use '--all-systems' to show)
│   │   ├───all-for-theme omitted (use '--all-systems' to show)
│   │   ├───all-tests omitted (use '--all-systems' to show)
│   │   ├───apps omitted (use '--all-systems' to show)
│   │   ├───default omitted (use '--all-systems' to show)
│   │   └───minimal-config omitted (use '--all-systems' to show)
│   └───x86_64-linux
error: expected a derivation

As does nix flake check:

$ nix flake check --impure github:the-argus/spicetify-nix
warning: unknown flake output 'homeManagerModules'
warning: unknown flake output 'homeManagerModule'
warning: flake output attribute 'nixosModule' is deprecated; use 'nixosModules.default' instead
trace: warning: spicetify-nix.lib is deprecated, use spicetify-nix.libs.${pkgs.system}
trace: warning: spicetify-nix.pkgs is deprecated, use spicetify-nix.packages.${pkgs.system}
warning: unknown flake output 'pkgs'
warning: unknown flake output 'libs'
error (ignored): error:
       … while checking the derivation 'packages.x86_64-linux.spicetify'

         at /nix/store/js56338sxzdlvvwrs3j766zni3n9c4yv-source/flake.nix:70:9:

           69|       packages = {
           70|         spicetify = pkgs.callPackage ./pkgs {};
             |         ^
           71|         default = self.packages.${system}.spicetify;

       error: flake attribute 'packages.x86_64-linux.spicetify' is not a derivation
error (ignored): error:
       … while checking the derivation 'packages.x86_64-linux.default'

         at /nix/store/js56338sxzdlvvwrs3j766zni3n9c4yv-source/flake.nix:71:9:

           70|         spicetify = pkgs.callPackage ./pkgs {};
           71|         default = self.packages.${system}.spicetify;
             |         ^
           72|       };

       error: flake attribute 'packages.x86_64-linux.default' is not a derivation

My config

nix flake show github:the-argus/spicetify-nix

or

nix flake check --impure github:the-argus/spicetify-nix

Screenshots n/a

Desktop (please complete the following information): n/a

Additional context Commands return errors due to various schema violations

the-argus commented 10 months ago

Okay, clearly I didn't understand the meaning of the various entries in the flake schema, I kind of just put my "packages" into packages even though theyre just sets and not derivations. Making a PR now, let me know if it fixes your issue (it does for me)