Currently the only way to get access to other Nix values from a package.nix is by importing them from the repository.
This works fine as long as a package is built by itself, but prevents overriding any of those values when it is built by another package.