starship requires $CC when going into a C repository (nixpkgs/nix to be exact) #17

Open
opened 2023-06-16 18:23:28 +00:00 by pegasust · 1 comment

starship requires $CC when going into a C repository (nixpkgs/nix to be exact)

Reproduce

  • git clone https://github.com/nixpkgs/nix.git
  • z nix
  • Should ask for $CC for darwin
  • Rebuild home-manager with programs.starship.enable = false
  • z nix
  • No longer asks for $CC

Why?

It appears that Starship is doing something to determine the C version, which is likely causing the prompts.

In the configuration file starship.toml, each language has a specific module. In each module, the language version is automatically displayed. It seems the C module is not included in the current version of Starship

# `starship` requires `$CC` when going into a C repository (`nixpkgs/nix` to be exact) ## Reproduce - `git clone https://github.com/nixpkgs/nix.git` - `z nix` - Should ask for `$CC` for `darwin` - Rebuild home-manager with `programs.starship.enable = false` - `z nix` - No longer asks for `$CC` ## Why? It appears that Starship is doing something to determine the C version, which is likely causing the prompts. In the configuration file starship.toml, each language has a specific module. In each module, the language version is automatically displayed. It seems the C module is not included in the current version of Starship
Poster
Owner

Addressed in #18 by straight up disabling c. This is because there is technical limitation with home-manager.config.programs.starship.settings.c.commands not supporting nested lists

Addressed in #18 by straight up disabling `c`. This is because there is technical limitation with `home-manager.config.programs.starship.settings.c.commands` not supporting nested lists
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pegasust/dotfiles#17
There is no content yet.