I am having trouble understanding https://github.com/NixOS/nixpkgs/blob/f4a8d6d5324c327dcc2d863eb7f3cc06ad630df4/lib/attrsets.nix#L1060
/* Get a package's `lib` output.
If the output does not exist, fallback to `.out` and then to the default.
Example:
getLib pkgs.openssl
=> "/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r-lib"
Type:
getLib :: Derivation -> String
*/
getLib = getOutput "lib";
when I try getLib pkgs.openssl
in nixrepl -f '<nixpkgs>
then I do not get s string but a derivation?
Is here the documentation wrong?