GithubHelp home page GithubHelp logo

Comments (6)

fricklerhandwerk avatar fricklerhandwerk commented on July 28, 2024 1

Program names are now indexed. Another use case are libraries: #673

from nixos-search.

samueldr avatar samueldr commented on July 28, 2024

Agreed, though this would need server-side work to happen (or some service hosted elsewhere).

All current search pages on the website are completely handled client-side by having an index loaded from the server.

Using nix-index you can locally search for files for any package (as long as it's built on hydra). It may be possible to build a service that, as a backend, would use nix-index to return results.

from nixos-search.

mickours avatar mickours commented on July 28, 2024

Also, command-not-found seems to do the job locally:

$ readelf
The program ‘readelf’ is currently not installed. You can install it by typing:
  nix-env -iA nixos.binutils-unwrapped

I'm using Zsh and the support was broken at the time I've created this issue.
Still, the idea remain interesting for systems that do not have command-not-found activated.

Maybe the command-not-found script can be adapted to be use as backend for the website as an alternative to nix-index.

from nixos-search.

 avatar commented on July 28, 2024

I don't think "interesting" is the right word... nobody seems to know which packages supplies "phpize" and "php.h", and the packages they suggest do not exist in the search. Minding that I only use NixOS because Replit (my IDE) uses NixOS, it seems vital to any distribution to be able to locate the appropriate packages supplying the target tools when they exist at all.

from nixos-search.

ysndr avatar ysndr commented on July 28, 2024

With flakes we can already exctract app attributes
I have looked into integrating nix-index (for nixpkgs at least).
As far as I see it should be quite possible to either speak with hydra directly or (better) integrate nix-index and track files in <drv>/bin
It's a bigger amendment to nixos-search and not as pressing here as it's available as its own tool in form of nix-index

from nixos-search.

nixos-discourse avatar nixos-discourse commented on July 28, 2024

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-07-20-documentation-team-meeting-notes-65/30876/1

from nixos-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.