Build package that require libstdcxx5

I need to build an old package the require libstdc++.so.5 but adding libstdcxx5 prints libstdcxx5 is severly outdated and has been removed.

So two questions:

  1. is it possible and has it a chance to work if I replace .so.5 with a more recent version like .so.6? How?
  2. if not, do you know the latest nix hash that contains this lib to combine it with flake?

This is the pr that removed libstdcxx5, which might be of some help:

Based on this, the last git revision that has this package is its parent,
c8bb7b26f2c6ecc39be2c4ddde5f5d152e4abc65.

Thanks a lot. I also used nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; in my flake, it seems to be the latest stable channel that has it.