Although you don't see it openly in public, it doesn't mean it's not happening in the minds of people there
Read about the "Century of Humiliation" and how it's ingrained in the mindset of young school children.
There is more growth & potential in product development that thrives on social networking-i.e, Facebook, Twitter, Instagram- as opposed to the typical outsourcing services that would churn out web applications, CRM, ERP, etc. Look at China, their focus is towards producing local versions of Google, Facebook, Twitter, Amazon -> Baidu, Weibo, WeChat, Alibaba - not becoming an outsourcing hub. Although India is an outsourcing hub, it can't be compared to China in the sheer scale of computing resources, local technological & social ecosystem. Indians will churn out outdated applications, rote-style. Chinese on the other hand, will churn out alternatives to Google, Facebook, Twitter, Amazon, Ebay, and the numerous "unicorns" & start-ups. Let's not even get into how China is far ahead of India in adopting Big Data technologies or AI.
This is a very deep topic, but my point is that Pakistan should focus on building its own local technology ecosystem by incubating tech start-ups. It should focus efforts on re-creating Silicon Valley or Shenzhen within the territory. This is the better route, in the long term, for prosperity. Local tech giants and start-ups will cater to local demand - the economy will be more consumer-driven, at the same time these same companies can expand to near-by regions like GCC. The industry won't be held hostage to exports decreasing because of shifts in political, technological environment. Furthermore, having local e-commerce giants will help document the economy - another critical issue Pakistan seems to suffer from.