symlinkJoin and version

I’m trying to use symlinkJoin to build a (convenience) package, but it doesn’t seem to accept a version and I’m not sure how to add it.

I have something like this

  foo = symlinkJoin {
    name = "foo-convenience";
    version = "1.2.3";
    paths = [awscli

but the resulting package doesn’t have the version I specify :disappointed:

How can I specify the version?

I don’t think anything in Nixpkgs appends version to name. To pname, yes, sometimes. name just includes both the base and the version part.