NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.65k stars 1.51k forks source link

nix search rmapi gets 0 results #4447

Open divanorama opened 3 years ago

divanorama commented 3 years ago
$ nix search -u rmapi
error: no results for the given search term(s)!

$ nix search ReMarkable
warning: using cached results; pass '-u' to update the cache
error: no results for the given search term(s)!

Expected behavior rmapi package should be searchable by package name https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/remarkable/rmapi/default.nix#L4

buildGoModule seems to correctly set meta, so package should also be searchable by description https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/go-modules/generic/default.nix#L234

Package license is agpl3, so this probably isn't due to allowUnfree not being set somewhere.

nix-env --version output nix-env (Nix) 2.3.10

edolstra commented 3 years ago

This works on master (with slightly different syntax):

$ nix search nixpkgs rmapi
* legacyPackages.x86_64-linux.rmapi (0.0.13)
  A Go app that allows access to the ReMarkable Cloud API programmatically
sjagoe commented 3 years ago

I was having the same problem now when looking for megacli.

Looking at the output of nix search --debug megacli showed only packages defined in my ~/.nixpkgs/config.nix (none of which are actually installed or needed; it's left over from a long time ago...).

Deleting ~/.nixpkgs/config.nix allowed nix search to search all of nixpkgs.

divanorama commented 3 years ago

Interesting, nix-search --debug rmapi doesn't print the package, regardless of deleting ~/.config/nixpkgs/config.nix or ~/.config/nix/nix.conf (also don't have ~/.nixpkgs/config.nix). Though debug prints some packages from channels I have (some are present for each channel, so doesn't look like it's listing only installed ones)

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info