Why does nix search not show any rPackages?

Hey All,

My when I use nix search to find rPackages, I am not able to find anything using the following:

[user@localhost ~]$ nix search nixpkgs rPackages

* legacyPackages.x86_64-linux.flutterPackages.stable (3.3.8)
  Flutter is Google's SDK for building mobile, web and desktop with Dart

* legacyPackages.x86_64-linux.flutterPackages.v2 (2.10.5)
  Flutter is Google's SDK for building mobile, web and desktop with Dart

* legacyPackages.x86_64-linux.python310Packages.wasmerPackages.wasmer (1.1.0)
  Python extension to run WebAssembly binaries

* legacyPackages.x86_64-linux.python310Packages.wasmerPackages.wasmer-compiler-cranelift (1.1.0)
  Python extension to run WebAssembly binaries

* legacyPackages.x86_64-linux.python310Packages.wasmerPackages.wasmer-compiler-llvm (1.1.0)
  Python extension to run WebAssembly binaries

* legacyPackages.x86_64-linux.python310Packages.wasmerPackages.wasmer-compiler-singlepass (1.1.0)
  Python extension to run WebAssembly binaries

* legacyPackages.x86_64-linux.python311Packages.wasmerPackages.wasmer (1.1.0)
  Python extension to run WebAssembly binaries

* legacyPackages.x86_64-linux.python311Packages.wasmerPackages.wasmer-compiler-cranelift (1.1.0)
  Python extension to run WebAssembly binaries

* legacyPackages.x86_64-linux.python311Packages.wasmerPackages.wasmer-compiler-llvm (1.1.0)
  Python extension to run WebAssembly binaries

* legacyPackages.x86_64-linux.python311Packages.wasmerPackages.wasmer-compiler-singlepass (1.1.0)
  Python extension to run WebAssembly binaries

[user@localhost ~]$ 

However, on the NixOS website there are more than 10000 r packages available. Can anyone explain to me why this is the case and how I could see these packages using nix search ?

Thanks!

nix search nixpkgs#rPackages shows them, and you can search for specific ones with nix search nixpkgs#rPackages foo.

The rPackages subscope is apparently marked for nix search not to enter it. I believe haskellPackages is the same. Iā€™m not sure precisely why, though.

1 Like