It seems like there is no official way to do that (see on the NixOS Discourse: Why is there only one version in nixpkgs?).
Some options that are available for that purpose are: