Both Wing Commander Prophecy and Star Trek: First Contact feature a Calico M951 submachinegun with helical magazine. That gun isn't especially rare in movies, but I've only ever seen it two times with a Bushnell holosight mounted on top - that was Prophecy and Star Trek: First Contact. The sight and addons really appear similar.
However, thanks to the hi-res DVD cutscenes, I could see that the Prophecy gun has its foregrip mounted backwards (movie armourers enjoy doing stuff like that), plus it doesn't even appear to have a Calico scopemount (like you see it in First Contact). Instead, it looks like the Bushnell sight is attached directly to the magazine for whatever reason.
Also, the Wing Commander: Prophecy armourer was Terence Morgan, and I couldn't find any Star Trek references in his portfolio.