As long as your supply line is semi-flexible and of a similar size, you can buy a different galvanized nipple that goes from 1 ½” threaded to a slightly larger or slightly smaller barbed end to accommodate your line size.