Can't install any software dependig on ncurses

I just installed nixos on my laptop and I can’t install anything depending on ncurses. It fails to download using nixos channels 22.05, 22.11, my previous (flake, including lock) config from a week ago, or the same config from 2 months ago.

When trying to build the flake, the error says, curl fails with http 403 to download https://invisible-island.net/archived/ncurses/current/ncurses-6.3-20220507.tgz

Can’t paste the log as I can’t even install a window manager.

What exact channels/inputs did you try?

I’d expect the results to be cached and therefore the sources not being needed to be downloaded.

In the flake I use nixpkgs.url = "nixpkgs/nixos-22.11";

For the fresh config I tried:

https://channels.nixos.org/nixos-22.05
https://channels.nixos.org/nixos-22.11

This is weird, I can build ncurses fine. Do you perhaps have some overlay? Or is your flake public, such that we can reproduce your issue?

{
  inputs = {
    nixpkgs.url = "nixpkgs/nixos-22.11";
    nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
    master.url = "nixpkgs/master";
    home-manager.url = "github:nix-community/home-manager/release-22.11";
    kmonad.url = "github:kmonad/kmonad?dir=nix";

  };

  outputs = { self, home-manager, nixpkgs, nixpkgs-unstable, master, nix, kmonad }:
    {
      builtins.trace = "hola" 10;
      nixosConfigurations.franco = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          ({ config, pkgs, ... }:
            let
              overlay-unstable = final: prev: { unstable = nixpkgs-unstable.legacyPackages.${final.system}; 
              # overlay-unstable = final: prev: { unstable = nixpkgs-unstable.legacyPackages.x86_64-linux; 
                                                master = master.legacyPackages.${final.system}; 
                                              };
            in
              { nixpkgs.overlays = [ overlay-unstable ];
                environment.systemPackages = with pkgs; [
                  unstable.nix
                  unstable.emacs28NativeComp
                  unstable.youtube-dl
                  unstable.yt-dlp
                  unstable.qpwgraph
                  unstable.wireplumber

                  unstable.hlint
                  unstable.cabal-install 
                  unstable.stack


                  unstable.audacious

                  unstable.cargo


                  unstable.nodejs-18_x
                  unstable.nodePackages.npm
                  unstable.nodePackages.markdownlint-cli
                  unstable.nodePackages.markdownlint-cli2
                  unstable.nixops_unstable
                  
                  ( unstable.haskellPackages.ghcWithPackages (ps: with ps; [ 

                    hasktags
                    haskdogs
                    hnix
                    stylish-haskell
                    hindent
                    fix-imports
                    apply-refact
                    retrie
                  ]) )
                  

                ];
            }
        )
          nixpkgs.nixosModules.notDetected
          ./configuration.nix
          home-manager.nixosModules.home-manager
          kmonad.nixosModules.default

          {
            home-manager.useGlobalPkgs = true;
            home-manager.useUserPackages = true;
            home-manager.users.fcortesi = import ./home.nix;
            home-manager.users.root = import ./home.nix;
          }
        ];
      };
    };
}


The configuration file is a standard one, just with more programs and services declared.

Tried removing the overlay with the same result.

That specific ncurses tarball downloads fine for me. Given the 403, perhaps you’re being blocked due to the source of your internet connection.

Error 403: “The server understood the request, but is refusing to authorize it.” (RFC 7231)[1]

I get a 404 with the above URL, but when I replace archived with archives in the URL, I can download something. Nixpkgs has the correct URL, so this still seems strange.
Can you do a nix-prefetch-url https://invisible-island.net/archives/ncurses/current/ncurses-6.3-20220507.tgz or maybe download the file on a different machine and add it to the store manually before you start your build?

Sorry, I’m typing on the phone and there is a typo. It’s archives, not archived.

I bought a new computer already, the very same (flake) config works fine (it compiles) so I’m not sure the problem is with my internet connection. But I can’t start any graphical environment, sways says there is no GPU, X just hangs with “Reached target Graphical Interface” on systemd log. It’s a ryzen 7950x, with “amdgpu” enabled both in X config and kernel modules.

Not sure which kernel and mesa support for Zen4 iGPUs came in. Try linux_latest and/or wait for mesa 22.3 to land via staging-next.

I’m using a usb - ethernet adapter on the notebook, could be that the reason of the 403 error? The same config builds on the new ryzen