How to get a package path in /nix/store which not containing a bin dir

nix eval <channel>.<package>.outPath
$ nix eval nixpkgs.python37.outPath
"/nix/store/4g2ilwnk4mj4g68rc52kygx7gcqxnjd0-python3-3.7.5"

NOTE: this will evalulate an outPath, given the channel (or file with --file), and may not actually exist in your store…

6 Likes