Gerg-L / spicetify-nix

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

Build is failling #215

Closed elythh closed 1 month ago

elythh commented 1 month ago

Hello, I've tried migrating from the-argus to your repo but I'm unable to build. The line causing the erorr is that one https://github.com/Gerg-L/spicetify-nix/blob/8056338fca46716159d5d54f59ed04d6cf7b771f/pkgs/spicetify.nix#L55

Here are the logs

``` nh home switch > Building home configuration error: … while calling the 'derivationStrict' builtin at /builtin/derivation.nix:9:12: (source not available) … while evaluating derivation 'home-manager-generation' whose name attribute is located at /nix/store/afawjm6nv8m5aagkcqxlxgrr5qpyh6cm-source/pkgs/stdenv/generic/make-derivation.nix:334:7 … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation' at /nix/store/afawjm6nv8m5aagkcqxlxgrr5qpyh6cm-source/pkgs/build-support/trivial-builders/default.nix:68:16: 67| enableParallelBuilding = true; 68| inherit buildCommand name; | ^ 69| passAsFile = [ "buildCommand" ] (stack trace truncated; use '--show-trace' to show the full trace) error: attribute 'getExe'' missing at /nix/store/c8ncdv5p4abybf6wayyzqxpzyyanh5bg-source/pkgs/spicetify.nix:55:15: 54| cp ${lib.getExe spicetify-cli} spicetify 55| ln -s ${lib.getExe' spicetify-cli "jsHelper"} jsHelper | ^ 56| ln -s ${cssMap} css-map.json Did you mean getExe? ┏━ 1 Errors: ┃ error: ┃ … while calling the 'derivationStrict' builtin ┃ ┃ at /builtin/derivation.nix:9:12: (source not available) ┃ ┃ … while evaluating derivation 'home-manager-generation' ┃ whose name attribute is located at /nix/store/afawjm6nv8m5aagkcqxlxgrr5qpyh6cm-source/pkgs/stdenv/generic/make-derivation.nix:334:7 ┃ ┃ … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation' ┃ ┃ at /nix/store/afawjm6nv8m5aagkcqxlxgrr5qpyh6cm-source/pkgs/build-support/trivial-builders/default.nix:68:16: ┃ ┃ 67| enableParallelBuilding = true; ┃ 68| inherit buildCommand name; ┃ | ^ ┃ 69| passAsFile = [ "buildCommand" ] ┃ ┃ (stack trace truncated; use '--show-trace' to show the full trace) ┃ ┃ error: attribute 'getExe'' missing ┃ ┃ at /nix/store/c8ncdv5p4abybf6wayyzqxpzyyanh5bg-source/pkgs/spicetify.nix:55:15: ┃ ┃ 54| cp ${lib.getExe spicetify-cli} spicetify ┃ 55| ln -s ${lib.getExe' spicetify-cli "jsHelper"} jsHelper ┃ | ^ ┃ 56| ln -s ${cssMap} css-map.json ┃ Did you mean getExe? ┣━━━ ┗━ ∑ ⚠ Exited with 1 errors reported by nix at 12:19:09 after 17s Error: 0: Command exited with status Exited(1) Location: src/commands.rs:151 ```
elythh commented 1 month ago

hmm idk what i did but it is now building, i'll close this issue

Gerg-L commented 1 month ago

That error would be from a really old nixpkgs

aliyss commented 4 weeks ago
spicetify-nix = {
  url = "github:Gerg-L/spicetify-nix";
  inputs.nixpkgs.follows = "nixpkgs";
};

I forgot to add inputs.nixpkgs.follows had to update system then update home. Then it worked again.