Just ask your DM to allow you to craft your pistol.
Futuristic weapons are not "priceless" per se, you can put a price tag on everything. The problem is, there is no standard way of getting one which would dictate a standard price. To craft, for example, a longsword, you need certain tools and certain resources, which - in normal circumstances - result in base cost of acquiring a sword being 15gp. Now, let's say your circumstances are not normal - you are deep in unexplored jungle with local tribes stuck in stone age and no iron ore deposits available. For these people, a sword will be as priceless as a laser gun - they have no way of reproducing it that doesn't involve a significant technological and industrial leap. This doesn't mean you can't sell your existing sword to a local chief for a roomful of diamonds - just that you wouldn't be able to get a new one for the same price in this specific time and place.
Now, your DM may judge that your sword-wielding artificer knows how to make one with the tools available to him and with resources avalable in the jungle; he would assign monetary and time value to this process. It probably will be higher than standard 15gp and a week of time, maybe it will involve going on a quest to defeat, say, a mystical Ur-Guardian of Whoknowswhere Temple (who is, accidentally, an iron golem - how fortunate for your iron-starved character), but you will get your sword.
Or maybe he will want to stick to his stone-age theme and make you get a weapon craftable with technology available. Or make you go without a weapon altogether.
Same thing with a laser pistol. There is no standard way of acquiring one, but if your DM is willing to give you one - he will provide a way. If not - not even a Wish will get you your gun.
P.S. And regarding "generic +1 weapon formula" - this is an inherently faulty route to explore, in my opinion; there are no "standard" formulas, they are, again, at your DM's discretion (for example, I would say that a formula for a +1 weapon as the first ingredient has a mundane version of the same weapon, which would bounce you right back to the start). Unless your table has an established precendent that there actually exists a recipe that allows to transmute a pile of money (or money-bought resources - which is basically the same process with extra steps) into any weapon (with an enhancement or not), bypassing the normal crafting process for that item. But even then - I wouldn't try to game the system and risk annoying the DM by trying to force him to give you an item he doesn't want to.