NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.14k stars 13.42k forks source link

Iosevka overrides leads to NPM errors. #127542

Open asheshambasta opened 3 years ago

asheshambasta commented 3 years ago

Describe the bug I'm trying to customize Iosevka currently with:

fonts.fonts = with pkgs; [
    fira-code
    fira-code-symbols
    (iosevka.override {
      set = "custom";
      privateBuildPlan = ''
        [buildPlans.iosevka-custom]
        family = "Iosevka Custom"
        spacing = "normal"
        serifs = "sans"
        no-cv-ss = true

        [buildPlans.iosevka-custom.variants.design] 
        capital-a = "curly-serifless"
              '';

    })
    noto-fonts
    noto-fonts-cjk
  ];

But this leads to:

╰─$ sudo nixos-rebuild switch                                                                                                                                                                                                                             ...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! iosevka@5.0.2 build: `node utility/ensure-verda-exists && verda -f verdafile.js "--jCmd=32" "ttf::iosevka-custom"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the iosevka@5.0.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

To Reproduce Steps to reproduce the behavior:

  1. Use the font configuration above.
  2. nixos-rebuild

Expected behavior The build should succeed.

Notify maintainers

Metadata

Maintainer information:

Iosevka

I wish I could be of more help, but I don't really understand how iosevka is packaged with node/npm.

ttuegel commented 3 years ago

The names of many options have changed. You will probably need to re-create your custom configuration with the customizer.

asheshambasta commented 3 years ago

The names of many options have changed. You will probably need to re-create your custom configuration with the customizer.

@ttuegel I did create the options via the customizer at the time of reporting the issue, but I'll retry.

spacekookie commented 3 years ago

I ran into this same issue.

Updating my configuration did the trick! Two of my settings were renamed:

I'm extremely annoyed with how frequently the iosevka developers break their build process but I guess there's not really anything we can do about that in NixOS.

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info