nixos-search icon indicating copy to clipboard operation
nixos-search copied to clipboard

Search results missing some packages

Open rmanne opened this issue 8 months ago • 5 comments

Describe the bug

I'm not sure how many packages are impacted, but I can confirm that at least 1 package is missing from search. Direct link to the search results.

Couldn't find a bug template, so copied over the one from nixpkgs and removed some irrelevant sections.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Search for "yabai" (direct link)
  2. Observe that there are no packages found
  3. Run nix-shell -p yabai
  4. Observe it works, that there exists a package with the name "yabai". (Run which yabai to confirm such a binary has been installed.)

Expected behavior

Searching for "yabai" should display the corresponding package, found here: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/darwin/yabai/default.nix#L8

search does seem to find a related package which is configured in a similar way, in around the same path: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/darwin/skhd/default.nix#L43

I'm not sure why the latter shows up in search.nixos.org but the former doesn't.

Screenshots

Screenshot 2023-11-29 at 21 12 38

Metadata

> nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.1.0, macOS 14.1.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.4`
 - channels(rmanne): `"darwin, nixpkgs-23.11pre519165.cddebdb60de3"`
 - channels(root): `"darwin, nixpkgs-23.11pre519165.cddebdb60de3"`
 - nixpkgs: `/Users/rmanne/.nix-defexpr/channels/nixpkgs`

rmanne avatar Nov 30 '23 05:11 rmanne

Indeed, all packages that are not available on Linux are not shown.

iFreilicht avatar Mar 28 '24 14:03 iFreilicht

Another package that isn't shown: atk.

Indeed, all packages that are not available on Linux are not shown.

But this one is actually available on Linux

ChocolateLoverRaj avatar Apr 13 '24 16:04 ChocolateLoverRaj

Another package that isn't shown: atk.

Where is that even defined? I can only find atkmm in the nixpkgs source. There's no directory named "atk" (find . -type d -name atk returns nothing), and no .nix file containing the string name = "atk". How can you even install that package?

iFreilicht avatar Apr 15 '24 07:04 iFreilicht

How can you even install that package

I can specify the package in buildInputs in a mkDerivation (I use NixOS)

ChocolateLoverRaj avatar Apr 16 '24 02:04 ChocolateLoverRaj