Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index flake inputs beyond nixpkgs #244

Open
KiaraGrouwstra opened this issue Feb 24, 2024 · 1 comment
Open

index flake inputs beyond nixpkgs #244

KiaraGrouwstra opened this issue Feb 24, 2024 · 1 comment

Comments

@KiaraGrouwstra
Copy link

KiaraGrouwstra commented Feb 24, 2024

nix-index now describes itself as a 'files database for nixpkgs'.
in practice, users may well end up using packages from more nix package repositories than those from nixpkgs.
as such, it would be nice if nix-index were generalized so as to say index packages among all of one's inputs, maybe treating nixpkgs as just one such input.

@KiaraGrouwstra
Copy link
Author

implementing this seems more viable if one accepts flakes as a de facto part of today's standard, and probably includes:

  • extending the database to include a field recording which flake a package is in
  • the nix-env command
  • its passed --file argument <nixpkgs>
  • the command-not-found.sh script which should be generalized to not use a hardcoded toplevel=nixpkgs but actually name the correct flake as per the (extended) database
  • .. maybe other bits using the database that would need updating as per such an extended schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant