catppuccin / vscode

🦌 Soothing pastel theme for VSCode & Azure Data Studio

Home Page:https://marketplace.visualstudio.com/items?itemName=Catppuccin.catppuccin-vsc-pack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[nixOS] 1 dependencies of derivation '/nix/store/xxx-vscode-extension-catppuccin-catppuccin-vsc-3.4.0.drv' failed to build

pixL404 opened this issue Β· comments

commented

I'm trying to use this extension on nixos with flakes.

my flake.nix looks like this:

# ...
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    home-manager.url = "github:nix-community/home-manager";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
    hyprland.url = "github:hyprwm/Hyprland";
    catppuccin-vsc.url = "github:catppuccin/vscode";
  };

  outputs = { self, nixpkgs, home-manager, hyprland, ... }@inputs:
  let
    system = "x86_64-linux";
    inherit (self) outputs;
    pkgs = import nixpkgs {
      inherit system;
      config.allowUnfree = true;
      overlays = [
        inputs.catppuccin-vsc.overlays.default
      ];
    };
  in
# ...

and my vscode.nix looks like this:

# ...   
  extensions = with pkgs.vscode-extensions; [
      # theming
      catppuccin.catppuccin-vsc-icons
      (pkgs.catppuccin-vsc.override {
        accentColor = "lavender";
        boldKeywords = true;
        italicComments = true;
        italicKeywords = true;
        extraBordersEnabled = false;
        workbenchMode = "default";
        bracketMode = "rainbow";
        colorOverrides = {};
        customUIColors = {};
      })
    ];
# ...

when I rebuilt my system I get the following error:

error: builder for '/nix/store/xxx-catppuccin-vsc.drv' failed with exit code 1;
       last 10 log lines:
       > patching sources
       > updateAutotoolsGnuConfigScriptsPhase
       > configuring
       > ➀ YN0000: β”Œ Resolution step
       > ➀ YN0000: β”” Completed in 0s 270ms
       > ➀ YN0000: β”Œ Fetch step
       > ➀ YN0056: β”‚ @esbuild/linux-x64@npm:0.18.20: Cache entry required but missing for @esbuild/linux-x64@npm:0.18.20
       > ➀ YN0013: β”‚ 1190 packages were already cached, one had to be fetched (@esbuild/linux-x64@npm:0.18.20)
       > ➀ YN0000: β”” Completed in 0s 248ms
       > ➀ YN0000: Failed with errors in 0s 575ms
       For full logs, run 'nix log /nix/store/xxx-catppuccin-vsc.drv'.

when I run nix log /nix/store/xxx-catppuccin-vsc.drv, this is the output:

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/xxx-catppuccin-vsc.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/xxx-yyy-source
source root is yyy-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
➀ YN0000: β”Œ Resolution step
➀ YN0000: β”” Completed in 0s 270ms
➀ YN0000: β”Œ Fetch step
➀ YN0056: β”‚ @esbuild/linux-x64@npm:0.18.20: Cache entry required but missing for @esbuild/linux-x64@npm:0.18.20
➀ YN0013: β”‚ 1190 packages were already cached, one had to be fetched (@esbuild/linux-x64@npm:0.18.20)
➀ YN0000: β”” Completed in 0s 248ms
➀ YN0000: Failed with errors in 0s 575ms

I am unsure how to fix this issue, I already tried checking out this repo and running nix build, but it resulted in the same error.

Hey there, you're probably actually the first person on Linux to use this flake - I noticed this problem a few days ago.
https://github.com/catppuccin/vscode/blob/main/yarn-project.nix#L302
Native dependencies like esbuild are only present for aarch64-darwin in the yarn lockfile, and I haven't found a way to check in all platform-specific shasums yet.
Upstream issue: stephank/yarn-plugin-nixify#52

@pixL404 I think I fixed it by explicitly checking in arm64/x86_64 linux & darwin esbuild packages; I'd appreciate if you can give it another try.

commented

@pixL404 I think I fixed it by explicitly checking in arm64/x86_64 linux & darwin esbuild packages; I'd appreciate if you can give it another try.

Yes that did it. Works like a charm now, thanks a lot!