✦2 ❯ nix repl
Welcome to Nix 2.18.5. Type :? for help.
nix-repl> :load <nixpkgs>
Added 22339 variables.
nix-repl> pam
«derivation /nix/store/dsmlq8izczg8aab9ryxh6m5m5lrf6wmx-linux-pam-1.6.1.drv»
nix-repl> wayland
«derivation /nix/store/lcg2mcbsqg55h1vqsh6wd00imq4zpfsp-wayland-1.23.0.drv»
I cannot find out the exact package named wayland on nix-search-packages website. And also, how can I efficiently search pam on the website? Since when I search pam on the website, I don’t see the exact package named pam and linux-pam seems to be placed at the tailing position.
Yes, but no, it’s using the darwin callPackage which permits it to be used on darwin and non-darwin alike. The main benefit of using this is to not have to use darwin as a package argument and pass the actual frameworks in instead, which makes for (presumably) easier overrides.
(Though I can’t say if it’s actually easier, I’ve never used darwin.)
Wayland builds some things on Darwin though not everything. It’s not particular useful, but it’s also not harmful allowing it to build (especially if it makes things easier for Linux maintainers).