Quite confused with some "un-searchable?" nix pakages

I think you can’t find pam in the search because its pname is linux-pam, so that’s what it shows up as.

For wayland, I’m not really sure, but this might be an error. You might want to open an issue in the nixos-search repo about this.

In any case, you can find which file the packages originate from using meta.position:

nix-repl> pam.meta.position
"/nix/store/m4wnqg94mzbb3mcraq5sjrrgfjdwbs95-source/pkgs/os-specific/linux/pam/default.nix:59"

nix-repl> wayland.meta.position
"/nix/store/m4wnqg94mzbb3mcraq5sjrrgfjdwbs95-source/pkgs/development/libraries/wayland/default.nix:118"

Edit: Looking at how these packages are defined in all-packages.nix, missing pam might be related to `go_1_22` not found · Issue #781 · NixOS/nixos-search · GitHub since it appears to be an alias to linux-pam and openpam

  pam = if stdenv.isLinux then linux-pam else openpam;
  linux-pam = callPackage ../os-specific/linux/pam { };

wayland is apparently a darwin package. This might be related to Search results missing some packages · Issue #708 · NixOS/nixos-search · GitHub

  wayland = darwin.apple_sdk_11_0.callPackage ../development/libraries/wayland { };
2 Likes