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

Ability to search for drv builder functions? #28

Open
bew opened this issue Mar 25, 2023 · 2 comments
Open

Ability to search for drv builder functions? #28

bew opened this issue Mar 25, 2023 · 2 comments

Comments

@bew
Copy link

bew commented Mar 25, 2023

Is your feature request related to a problem? Please describe.
I'd like a search functions that build derivations, like the functions that return derivation for python, rust, vim-plugins, ...
(the trivial builders are already indexed so that's good, but I think we can do better!)

This would potentially need special support from nixpkgs, to have (in the documentation?) structured metadata about what that function helps to build, like Rust Package, Python Package, Python Environment, Vim Plugin, Nvim Config.
Might need to add more usability & attrset option documentation to those as well.

Relevant RFC on docstring format: NixOS/rfcs#145

Describe the solution you'd like
Ability to filter by ecosystem (rust, python, java, ..)
Ability to filter by category of well-known things to build (config, env, pkg/module, plugin, misc, ..)

See usage documentation (& attribute docs?) or at least link to documentation (potentially generated from structured doc metadata?)
...

Describe alternatives you've considered
Grepping nixpkgs, looking at existing packages

@hsjobeki
Copy link
Collaborator

hsjobeki commented Apr 4, 2023

This would require doc-strings to have a tags feature.
Alternatively, we could maintain a tag-mapping of nixpkgs attributes.

However, noogle doesn't yet discover things like buildPythonPackage. We need to come up with a solution for this first.

buildPythonPackage is defined here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/python/mk-python-derivation.nix

Unfortunately we cannot yet discover everything automatically. But I am on the Topic.

@hsjobeki
Copy link
Collaborator

hsjobeki commented Jan 7, 2024

Almost resolved...
https://noogle.dev/f/pkgs/pythonPackages/buildPythonPackage

What else are we missing in the current release of noogle?

You can add any subset yourself easily now btw.
https://github.com/nix-community/noogle/blob/main/pasta/src/eval.nix#L23-L48

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