From the soil analyses I have read so far, water is probably the easiest thing to get on mars. In the northern hemisphere, there are entire deserts made of gypsum powder/sand.
Gypsum is hydrated calcium sulfate. Simply heating it above 300F will liberate significant quantities of water. Heating it to over 5000F will thermally decompose the gypsum into calcium and sulfur oxides and will extract all possible water. (300F is much easier to attain, and about 1/3 of the mass of the initial gypsum processed will be returned as potable water.)
Water, and therefor the hydrogen deficit, is therefore not a significant obstacle to colonization as long as dedicated mineral processing is in place.
Nitrogen on the other hand?
According to wikipedia:
Compared to Earth, the atmosphere of Mars is quite rarefied. Atmospheric pressure on the surface today ranges from a low of 30 Pa (0.030 kPa) on Olympus Mons to over 1,155 Pa (1.155 kPa) in Hellas Planitia, with a mean pressure at the surface level of 600 Pa (0.60 kPa).[129] The highest atmospheric density on Mars is equal to that found 35 km (22 mi)[130] above Earth's surface. The resulting mean surface pressure is only 0.6% of that of Earth (101.3 kPa).
...
The atmosphere of Mars consists of about 96% carbon dioxide, 1.93% argon and 1.89% nitrogen along with traces of oxygen and water.
What does this mean? It means that even if you were to concentrate martian atmosphere to 1 bar pressure, only 1.89% of it would be nitrogen. You could separate this from the carbon dioxide (but not the argon) by reducing the temperature and allowing the CO2 to freeze into dry ice, then mechanically removing it. The nitrogen however, will be approximately 50% diluted with argon. This is just fine if you want it for habitat atmosphere filler: Almost 4% of the full gas canister is useful for that purpose (though your colonists may sound a little like mickey mouse). But for horticulture, you need the nitrogen, not the genuinely inert noble gas.
That would require additional processing. Specifically, recompression to several hundred earth atmospheres (against the pressure gradient of mars' surface, this poses a significant material science hurdle. The pressure vessels would have tremendous stresses on them if they were open to the external environment. This processing would have to happen in pressurized environments to work at all.). This will cause the nitrogen to condense into liquid nitrogen, leaving free argon as the last remaining gas.
The knowhow and technology to accomplish the refining isn't the problem.
The problem is the absurd energy and process time it would take to get useful quantities of nitrogen from the martian atmosphere, and the absurd volume of martian atmosphere one would need to process.
Using a combined gas law calculator, I evaluated how much 1 liter of nitrogen gas on earth would equate at room temperature, given the differences in pressure.
1L on earth == 168.83L on mars. (Liters as measure of volume of gas)
A cubic meter is 1000 Liters. (again, measure of volume of gas)
So, to fill a habitat with the 70% nitrogen gas and 1 atm pressure needed for sustained agriculture on mars, which we will (for sake of easiness) say is 1000 cubic meters in volume, we would need 700 cubic meters of pure nitrogen gas at 1 atm.
This volume at mars pressure would be 118,181 cubic meters.
Again, only 2% of martian atmosphere is nitrogen. So, we divide that absurd number by .02
5,909,050 cubic meters of martian atmosphere will have to be processed at 100% efficiency to produce the nitrogen necessary to fill the habitat.
It's just easier to take the nitrogen with you, and then be miserly conservative about it.