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

Feature request: command-not-found implementation #29

Open
jlbribeiro opened this issue Apr 5, 2024 · 2 comments
Open

Feature request: command-not-found implementation #29

jlbribeiro opened this issue Apr 5, 2024 · 2 comments

Comments

@jlbribeiro
Copy link

First of all, thank you @replit for creating rippkgs and releasing it as an open-source project :)

In your release blog post, it is mentioned that "you’ve incorporated rippkgs into your command-not-found hook".

Given the scope of rippkgs (and the comparison to nix-index), would it be possible to provide a minimal command-not-found handler implementation that makes use of rippkgs (assuming Replit's implementation is too specific to be shared)?

This would be very useful to users of Nixpkgs/devShells in general, but particularly to NixOS users in flake-only (i.e. no channels) configurations [1], who usually resort to nix-index or a custom programs.command-not-found.dbPath [2].

Once again, thank you for rippkgs!

@jlbribeiro jlbribeiro changed the title As a command-not-found replacement Feature request: command-not-found implementation Apr 5, 2024
@cdmistman
Copy link
Contributor

would love to share our command not found implementation! Is it enough to add documentation for this? I'd rather avoid adding the extra nix-index flake input if possible...

@jlbribeiro
Copy link
Author

@cdmistman First of all, thank you for being open to that :)

To be honest, I didn't imagine it would depend on nix-index, because I thought rippkgs was a complete replacement of nix-index (although I admittedly don't fully grasp the implementation details to understand how they can complement each other).
This request (along with #30) was basically an attempt at mimicking the "ergonomics" of nix-index as a command-not-found, since I envisioned rippkgs almost being a drop-in replacement, one NixOS/Home Manager module option away.

Being in documentation is already a great improvement, which would allow building all the other things upon it (maybe externally, if they don't fit this repo). So please do share :)

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

2 participants