Yes, there are several ways to do this, but none of them are as direct and simple as git v2.1.2; htop v1.2.3
and come with a lot of caveats.
aside
Specifying versions for programming language packages are possible too, but that topic seems to be even messier. The most promising standardization effort to date is [dream2nix
][1].
That is, available at the time of this writing: