I’m somewhat familiar (layman-like), with the original constitution of India. When it was being created (early 1950’s), there was some discussion about whether individual rights should be more important than things like “promotion of social welfare”. The term used for the latter type of “thing” was “directive principle of state policy”. The framers could not resolve the basic question about the purpose of government. Powerful groups among the original framers wanted to stress the “directive principles” (e.g. “just and humane conditions”, “free legal aid”, “raising the level of nutrition”).
Finally, a compromise of sorts was worked out. Individual rights and directive principles were both included in the Indian constitution. However, Individual Rights were given some measure of primacy. In the section for Individual Rights, was included the following provision:
The State shall not make any law which takes away or abridges the rights conferred by this Part and any law made in contravention of this clause shall, to the extent of the contravention, be void.
And, the “directive principles” were implicitly declared secondary by saying
The provisions contained in this Part shall not be enforceable by any court, but the principles there in laid down are nevertheless fundamental in the governance of the country and it shall be the duty of the State to apply these principles in making laws
So, the constitution started off with these contradictory purposes of government, with the individual rights folks thinking they had won. The section on individual rights itself listed some specific implementation, and did not contain (much of) the EU type “rights”.
Unfortunately, over time, India became increasingly socialist and in the 1970’s added the word “Socialist” to the official name of the country. Around that time, a few constitutional amendments were passed (here and here) . In addition, a new section was added by amendment, listing the “Fundamental Duties” of citizens.